Skip to content

Commit

Permalink
Revert "Disable GC during gc_each_objects(); fix #3616"
Browse files Browse the repository at this point in the history
This reverts commit d2cad9a.
  • Loading branch information
matz committed Apr 25, 2017
1 parent 01f7825 commit 058da1f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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
Expand Down

0 comments on commit 058da1f

Please sign in to comment.