[MLton-commit] r6606

Matthew Fluet fluet at mlton.org
Tue Apr 22 17:23:06 PDT 2008


Update comments

----------------------------------------------------------------------

U   mlton/trunk/runtime/gc/heap.c

----------------------------------------------------------------------

Modified: mlton/trunk/runtime/gc/heap.c
===================================================================
--- mlton/trunk/runtime/gc/heap.c	2008-04-23 00:23:02 UTC (rev 6605)
+++ mlton/trunk/runtime/gc/heap.c	2008-04-23 00:23:05 UTC (rev 6606)
@@ -142,8 +142,7 @@
  * allocates a heap of the size necessary to work with desiredSize
  * live data, and ensures that at least minSize is available.  It
  * returns TRUE if it is able to allocate the space, and returns FALSE
- * if it is unable.  If a reasonable size to space is already there,
- * then heapCreate leaves it.
+ * if it is unable.
  */
 bool createHeap (GC_state s, GC_heap h,
                  size_t desiredSize,
@@ -427,7 +426,7 @@
   if (0 == secondarySize)
     return;
   if (2 * primarySize > s->sysvals.ram)
-    /* Holding on to heap2 might cause paging.  So don't. */
+    /* Holding on to secondaryHeap might cause paging.  So don't. */
     releaseHeap (s, &s->secondaryHeap);
   else if (secondarySize < primarySize) {
     unless (remapHeap (s, &s->secondaryHeap, primarySize, primarySize))




More information about the MLton-commit mailing list