[MLton-devel] max-heap is ignored?
Stephen Weeks
MLton@mlton.org
Tue, 29 Jul 2003 18:53:09 -0700
> It looks like the max-heap runtime option is being ignored. Looking in
> mlton/runtime/gc.c I see that the maxHeap member of the GC_state is being
> set but it isn't ever looked at.
Yep. Looking through the CVS, I see that the bug was introduced in
revision 1.54, over a year ago!
> Either the docs should be fixed or, better I would say, the old behavior
> should be restored. Was it eliminated by mistake?
It was eliminated by mistake.
I'll add it to my todo list to fix, since the fix is not a one liner.
The difficulty is the interaction with the automatic switching between
Cheney and mark-compact GC. With Cheney GC, we want the sum of the
two semispace sizes to be <= max-heap. With mark-compact GC, we want
the (single) heap size to be <= max-heap.
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel