Last active
December 11, 2015 05:28
-
-
Save authorNari/4552502 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.c b/src/gc.c | |
index 66f2bf0..064e050 100644 | |
--- a/src/gc.c | |
+++ b/src/gc.c | |
@@ -1143,13 +1143,8 @@ static void | |
change_gen_gc_mode(mrb_state *mrb, mrb_int enable) | |
{ | |
if (is_generational(mrb) && !enable) { | |
- if (is_major_gc(mrb)) { | |
- advance_phase(mrb, GC_STATE_NONE); | |
- } | |
- else { | |
- clear_all_old(mrb); | |
- gc_assert(mrb->gc_state == GC_STATE_NONE); | |
- } | |
+ clear_all_old(mrb); | |
+ gc_assert(mrb->gc_state == GC_STATE_NONE); | |
mrb->gc_full = FALSE; | |
} | |
else if (!is_generational(mrb) && enable) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment