We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a6b13d commit cb756daCopy full SHA for cb756da
gc.c
@@ -7228,7 +7228,9 @@ gc_mark_imemo(rb_objspace_t *objspace, VALUE obj)
7228
GC_ASSERT(env->ep[VM_ENV_DATA_INDEX_ENV] == obj);
7229
GC_ASSERT(VM_ENV_ESCAPED_P(env->ep));
7230
rb_gc_mark_values((long)env->env_size, env->env);
7231
- VM_ENV_FLAGS_SET(env->ep, VM_ENV_FLAG_WB_REQUIRED);
+ if (!VM_ENV_FLAGS(env->ep, VM_ENV_FLAG_WB_REQUIRED)) {
7232
+ VM_ENV_FLAGS_SET(env->ep, VM_ENV_FLAG_WB_REQUIRED);
7233
+ }
7234
gc_mark(objspace, (VALUE)rb_vm_env_prev_env(env));
7235
gc_mark(objspace, (VALUE)env->iseq);
7236
}
0 commit comments