Skip to content

Commit

Permalink
Do full shareability check whe considering object for local-immune st…
Browse files Browse the repository at this point in the history
…atus
  • Loading branch information
rm155 committed Oct 14, 2024
1 parent f010b8b commit 5d57c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objspace_coordinator.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ bool shared_reference_tbl_empty(rb_objspace_gate_t *os_gate);
bool external_reference_tbl_empty(rb_objspace_gate_t *os_gate);
#endif

#define MUTABLE_SHAREABLE(obj) (!OBJ_FROZEN(obj) && FL_TEST_RAW(obj, FL_SHAREABLE))
#define MUTABLE_SHAREABLE(obj) (!OBJ_FROZEN(obj) && rb_ractor_shareable_p(obj))

void add_local_immune_object(VALUE obj);
void remove_local_immune_object(VALUE obj);
Expand Down

0 comments on commit 5d57c33

Please sign in to comment.