Skip to content

Commit

Permalink
Fix global_tbl marking conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
rm155 committed Jul 31, 2023
1 parent 24556ae commit b7e7b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -8365,7 +8365,7 @@ gc_mark_roots(rb_objspace_t *objspace, const char **categoryp)
MARK_CHECKPOINT("end_proc");
rb_mark_end_proc(objspace);

if (!rb_multi_ractor_p() || objspace == vm->ractor.main_ractor || objspace->flags.during_global_gc) {
if (!rb_multi_ractor_p() || objspace == vm->objspace) {
MARK_CHECKPOINT("global_tbl");
rb_gc_mark_global_tbl();
}
Expand Down

0 comments on commit b7e7b41

Please sign in to comment.