diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-06-22 02:05:14 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-06-22 02:05:14 +0900 |
| commit | b200c7475ae65abbbea09fcf91c38a1c8971da1c (patch) | |
| tree | b4ae29afc85aad3c9afe305570636418ea636be0 | |
| parent | c41e262667faa0edea31e47d133276c1dc72ef06 (diff) | |
| download | mruby-b200c7475ae65abbbea09fcf91c38a1c8971da1c.tar.gz mruby-b200c7475ae65abbbea09fcf91c38a1c8971da1c.zip | |
No need to mark stacks of terminated fibers; fix #3720
| -rw-r--r-- | src/gc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -579,6 +579,8 @@ mark_context(mrb_state *mrb, struct mrb_context *c) int i; mrb_callinfo *ci; + if (c->status == MRB_FIBER_TERMINATED) return; + /* mark VM stack */ mark_context_stack(mrb, c); |
