[Vm-dev] ChromeOS/ARM/Cog problem
Ken.Dickey at whidbey.com
Wed Nov 11 04:01:23 UTC 2015
On Mon, 9 Nov 2015 12:57:36 -0800
John McIntosh <johnmci at smalltalkconsulting.com> wrote:
> maybe use mprotect and change to PROT_EXEC only versus PROT_WRITE+PROT_EXEC
> after you write the bits.
int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0);
see discussion on:
which shows Win, Mac, and Linux code for JIT memory allocation.
More information about the Vm-dev