[MLton-commit] r7053

Matthew Fluet fluet at mlton.org
Wed Apr 8 05:31:39 PDT 2009


Make generational ratio decision based on heap size with maps.
----------------------------------------------------------------------

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

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

Modified: mlton/trunk/runtime/gc/gc_state.c
===================================================================
--- mlton/trunk/runtime/gc/gc_state.c	2009-04-08 12:31:35 UTC (rev 7052)
+++ mlton/trunk/runtime/gc/gc_state.c	2009-04-08 12:31:38 UTC (rev 7053)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1999-2008 Henry Cejtin, Matthew Fluet, Suresh
+/* Copyright (C) 2009 Matthew Fluet.
+ * Copyright (C) 1999-2008 Henry Cejtin, Matthew Fluet, Suresh
  *    Jagannathan, and Stephen Weeks.
  * Copyright (C) 1997-2000 NEC Research Institute.
  *
@@ -83,7 +84,7 @@
        or (s->lastMajorStatistics.kind == GC_MARK_COMPACT)
        /* The live ratio is low enough to make it worthwhile. */
        or ((float)h->size / (float)s->lastMajorStatistics.bytesLive
-           <= (h->size < s->sysvals.ram
+           <= (h->withMapsSize < s->sysvals.ram
                ? s->controls.ratios.copyGenerational
                : s->controls.ratios.markCompactGenerational))
        )) {




More information about the MLton-commit mailing list