Skip to content

Commit

Permalink
Delete unneeded remove_local_immune_object function
Browse files Browse the repository at this point in the history
  • Loading branch information
rm155 committed Oct 22, 2024
1 parent 8075c67 commit 950cae5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions objspace_coordinator.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,19 +746,6 @@ add_local_immune_object(VALUE obj)
WITH_OBJSPACE_GATE_LEAVE(source_gate);
}

void
remove_local_immune_object(VALUE obj)
{
WITH_OBJSPACE_GATE_ENTER(obj, os_gate);
{
rb_native_mutex_lock(&os_gate->local_immune_tbl_lock);
bool deleted = !!st_delete(os_gate->local_immune_tbl, (st_data_t *) &obj, NULL);
if (deleted) os_gate->local_immune_count--;
rb_native_mutex_unlock(&os_gate->local_immune_tbl_lock);
}
WITH_OBJSPACE_GATE_LEAVE(os_gate);
}

void
mark_local_immune_tbl(rb_objspace_gate_t *os_gate)
{
Expand Down
1 change: 0 additions & 1 deletion objspace_coordinator.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ bool external_reference_tbl_empty(rb_objspace_gate_t *os_gate);
#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);
void mark_local_immune_tbl(rb_objspace_gate_t *os_gate);
void update_local_immune_tbl(rb_objspace_gate_t *os_gate);
bool rb_local_immune_tbl_contains(rb_objspace_gate_t *os_gate, VALUE obj, bool lock_needed);
Expand Down

0 comments on commit 950cae5

Please sign in to comment.