Skip to content

Commit

Permalink
Let top_self be nil for Ractor-threads
Browse files Browse the repository at this point in the history
  • Loading branch information
rm155 committed Sep 19, 2022
1 parent 1b171f6 commit 55921ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ractor.c
Expand Up @@ -1622,6 +1622,7 @@ ractor_create(rb_execution_context_t *ec, VALUE self, VALUE loc, VALUE name, VAL

rb_yjit_before_ractor_spawn();
rb_thread_create_ractor(r, args, block);
r->threads.main->top_self = Qnil;

RB_GC_GUARD(rv);
return rv;
Expand Down

0 comments on commit 55921ff

Please sign in to comment.