Permalink
Browse files

Prohibit changing generational mode during GC disabled; fix #3689

  • Loading branch information...
matz committed Jun 3, 2017
1 parent 935649b commit c9a4f8a63bef19c98771c49884ff40126e9b7b33
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gc.c
View
@@ -1437,7 +1437,7 @@ static void
change_gen_gc_mode(mrb_state *mrb, mrb_gc *gc, mrb_bool enable)
{
if (gc->disabled || gc->iterating) {
gc->generational = enable;
mrb_raise(mrb, E_RUNTIME_ERROR, "generational mode changed when GC disabled");
return;
}
if (is_generational(gc) && !enable) {

0 comments on commit c9a4f8a

Please sign in to comment.