[MLton] reason for mprotect with PROT_EXEC ?

Adam Goode adam at spicenitz.org
Tue Feb 12 10:17:37 PST 2008


Matthew Fluet wrote:
> 
> BTW, profiling is not the only thing that uses the signal stack.  Any
> SML program that uses MLton.Signal to install a non-default signal
> handler will end up using the alternate signal stack.
> 

Ok, I wasn't sure.

> 
> Another alternative would be to add another #define configuration
> parameter, say NEEDS_SIGALTSTACK_EXEC, which would be set by the various
> platform/{arch,os}.h files and used by the platform/mmap-protect.c file
> to use the appropriate flags.
> 

Good plan, I'll see if I can get to getting a patch worked out tonight.



Adam

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
Url : http://mlton.org/pipermail/mlton/attachments/20080212/e7c2283c/signature.pgp


More information about the MLton mailing list