codegen: explicit allocate codebuffer with proper permissions
authorBernhard Urban <lewurm@gmail.com>
Mon, 30 Apr 2012 08:16:37 +0000 (10:16 +0200)
committerBernhard Urban <lewurm@gmail.com>
Mon, 30 Apr 2012 08:16:37 +0000 (10:16 +0200)
we had weird issues, when upgrading ghc:
http://stackoverflow.com/questions/10341943/ghc-segmentation-fault-under-strange-conditions

therefore, this fix: use `mprotect' to set the codebuffer explicitly executable.
`mprotect' requires aligned memory, so we use `memalign'.


No differences found