Skip to content

Commit

Permalink
Update local immune object count during absorption
Browse files Browse the repository at this point in the history
  • Loading branch information
rm155 committed Oct 22, 2024
1 parent 950cae5 commit e3a5540
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions objspace_coordinator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,7 @@ absorb_shared_object_tables(rb_objspace_gate_t *gate_to_update, rb_objspace_gate
rb_native_mutex_lock(&gate_to_update->local_immune_tbl_lock);

absorb_table_contents(gate_to_update->local_immune_tbl, gate_to_copy_from->local_immune_tbl);
gate_to_update->local_immune_count += gate_to_copy_from->local_immune_count;

rb_native_mutex_unlock(&gate_to_copy_from->local_immune_tbl_lock);
rb_native_mutex_unlock(&gate_to_update->local_immune_tbl_lock);
Expand Down

0 comments on commit e3a5540

Please sign in to comment.