[sgen] Create constant for heap growth allowance
[mono.git] / mono / sgen / sgen-conf.h
index 368ec5a6d3be6fed582712f113fe1289b69755a6..11a8998478e765e8083e337c57a9f48c6fb7a9ee 100644 (file)
@@ -185,6 +185,11 @@ typedef mword SgenDescriptor;
 #define SGEN_MIN_ALLOWANCE_NURSERY_SIZE_RATIO 1.0
 #define SGEN_MAX_ALLOWANCE_NURSERY_SIZE_RATIO 10.0
 
+/*
+ * How much more we allow the heap to grow before triggering another major collection
+ */
+#define SGEN_DEFAULT_ALLOWANCE_HEAP_SIZE_RATIO 0.33
+
 /*
  * Default ratio of memory we want to release in a major collection in relation to the the current heap size.
  *