Skip to content
Permalink
Browse files
Revert "Disable GC during gc_each_objects(); fix #3616"
This reverts commit d2cad9a.
  • Loading branch information
matz committed Apr 25, 2017
1 parent 01f7825 commit 058da1fed2ba39c78cefe2e3c87484d04b9ed94a
Showing 1 changed file with 0 additions and 3 deletions.
@@ -1491,9 +1491,7 @@ static void
gc_each_objects(mrb_state *mrb, mrb_gc *gc, mrb_each_object_callback *callback, void *data)
{
mrb_heap_page* page = gc->heaps;
mrb_bool old_disable = gc->disabled;

gc->disabled = TRUE;
while (page != NULL) {
RVALUE *p, *pend;

@@ -1506,7 +1504,6 @@ gc_each_objects(mrb_state *mrb, mrb_gc *gc, mrb_each_object_callback *callback,

page = page->next;
}
gc->disabled = old_disable;
}

void

0 comments on commit 058da1f

Please sign in to comment.