[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] replace valloc() with mmap() when allocating executable pages for cal… (#299)
notifications at github.com
Tue Oct 30 16:46:14 UTC 2018
Under linux, if SELinux is enabled (i.e. not permisive or disabled), then
the heap memory allocated with vmalloc() and marked as executable with mprotect()
will fail. In order to have this work with SELinux enabled (and not providing
a module policy file to allow execheap) mmap() should be used.
Note, it might be possible to remove the stdlib.h and sys/mman.h header
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* replace valloc() with mmap() when allocating executable pages for callbacks
-- File Changes --
M platforms/Cross/plugins/IA32ABI/ia32abicc.c (7)
M platforms/Cross/plugins/IA32ABI/x64sysvabicc.c (7)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev