[MLton] max-heap setting for 64-bit applications

Florian Weimer fw at deneb.enyo.de
Mon Dec 14 09:51:13 PST 2009


* Matthew Fluet:

> (Or, on Windows, use the reserve/commit distinction.

It's there on Linx, too.

> On Posix, use the madvise to preemptively indicate page-out/page-in
> behavior.

Doesn't work.  You have to map with PROT_NONE and then use mprotect to
make available the parts you need.

This is not a published kernel ABI, so it might break in the future.



More information about the MLton mailing list