Permalink
Browse files

Avoid tracing shared TT_ENV object.

  • Loading branch information...
matz committed Mar 4, 2017
1 parent c789acb commit ecee8c51b0ad8cddd9e422a3e5105f902d7e2781
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gc.c
View
@@ -639,6 +639,7 @@ gc_mark_children(mrb_state *mrb, mrb_gc *gc, struct RBasic *obj)
struct REnv *e = (struct REnv*)obj;
mrb_int i, len;
if MRB_ENV_STACK_SHARED_P(e) break;
len = MRB_ENV_STACK_LEN(e);
for (i=0; i<len; i++) {
mrb_gc_mark_value(mrb, e->stack[i]);

0 comments on commit ecee8c5

Please sign in to comment.