mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
Use non-standard MAP_ANON for memory mapping
This commit is contained in:
parent
2d042616d0
commit
fbec4bec83
@ -509,7 +509,7 @@ class MySystem: public System {
|
||||
|
||||
if (executable) {
|
||||
void* p = mmap(0, size, PROT_EXEC | PROT_READ | PROT_WRITE,
|
||||
MAP_PRIVATE | MAP_ANONYMOUS | MAP_32BIT, -1, 0);
|
||||
MAP_PRIVATE | MAP_ANON | MAP_32BIT, -1, 0);
|
||||
|
||||
if (p == MAP_FAILED) {
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user