CVS: sml/src/runtime/c-libs/smlnj-runtime gc-ctl.c,1.4,1.5
John Reppy <[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj.commits |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/smlnj/sml/src/runtime/c-libs/smlnj-runtime
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4787/c-libs/smlnj-runtime
Modified Files:
gc-ctl.c
Log Message:
Allow heap triming to be turned off. WARNING: doing so may result in
unbounded heap-growth, even for constant-space programs!
Index: gc-ctl.c
===================================================================
RCS file: /cvsroot/smlnj/sml/src/runtime/c-libs/smlnj-runtime/gc-ctl.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** gc-ctl.c 30 Apr 2005 13:35:23 -0000 1.4
--- gc-ctl.c 5 May 2005 16:25:11 -0000 1.5
***************
*** 54,57 ****
--- 54,63 ----
GCMessages = FALSE;
}
+ else if (STREQ("LimitHeap", oper)) {
+ if (INT_MLtoC(DEREF(cell)) > 0)
+ UnlimitedHeap = FALSE;
+ else
+ UnlimitedHeap = TRUE;
+ }
}
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20