Permalink
Browse files

Should terminate nested iterations in each_object; ref #3359

  • Loading branch information...
matz committed Apr 22, 2017
1 parent 058da1f commit 03cdb8e9dd3447115530418c2b8183c94dee2a53
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/gc.c
View
@@ -1499,9 +1499,8 @@ gc_each_objects(mrb_state *mrb, mrb_gc *gc, mrb_each_object_callback *callback,
pend = p + MRB_HEAP_PAGE_SIZE;
for (;p < pend; p++) {
if ((*callback)(mrb, &p->as.basic, data) == MRB_EACH_OBJ_BREAK)
break;
return;
}
page = page->next;
}
}

0 comments on commit 03cdb8e

Please sign in to comment.