Skip to content

Instantly share code, notes, and snippets.

@samcv
Created February 9, 2017 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samcv/7be2ec5920f525f6aad1242a07e187b0 to your computer and use it in GitHub Desktop.
Save samcv/7be2ec5920f525f6aad1242a07e187b0 to your computer and use it in GitHub Desktop.
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