diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-11-22 12:18:20 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-11-22 12:18:20 +0900 |
| commit | 393133e741bf168c78630c81ff2c7767fef018a6 (patch) | |
| tree | 4f989b2783641d5c2fb9e91a8c96957171850986 /src/gc.c | |
| parent | 8b7a8978e2da6c0a427e08af8593e82160033756 (diff) | |
| download | mruby-393133e741bf168c78630c81ff2c7767fef018a6.tar.gz mruby-393133e741bf168c78630c81ff2c7767fef018a6.zip | |
Should have marked all ensure stack entries; fix #3855 fix #3856
Diffstat (limited to 'src/gc.c')
| -rw-r--r-- | src/gc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -599,8 +599,7 @@ mark_context(mrb_state *mrb, struct mrb_context *c) } } /* mark ensure stack */ - for (i=0; i<c->esize; i++) { - if (c->ensure[i] == NULL) break; + for (i=0; i<c->eidx; i++) { mrb_gc_mark(mrb, (struct RBasic*)c->ensure[i]); } /* mark fibers */ |
