Created
February 9, 2017 10:22
-
-
Save samcv/7be2ec5920f525f6aad1242a07e187b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/gc/orchestrate.c b/src/gc/orchestrate.c | |
index 6309a8a7..ab934414 100644 | |
--- a/src/gc/orchestrate.c | |
+++ b/src/gc/orchestrate.c | |
@@ -303,7 +303,7 @@ static MVMint32 is_full_collection(MVMThreadContext *tc) { | |
if (uv_resident_set_memory(&rss) < 0 || rss == 0) | |
rss = 50 * 1024 * 1024; | |
percent_growth = (100 * promoted) / rss; | |
- return percent_growth >= MVM_GC_GEN2_THRESHOLD_PERCENT; | |
+ return percent_growth >= MVM_GC_GEN2_THRESHOLD_PERCENT || promoted > 30000000; | |
} | |
static void run_gc(MVMThreadContext *tc, MVMuint8 what_to_do) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment