Skip to content

Implement Write Barriers#132

Open
byroot wants to merge 1 commit intoSpringMT:mainfrom
byroot:write-barrier
Open

Implement Write Barriers#132
byroot wants to merge 1 commit intoSpringMT:mainfrom
byroot:write-barrier

Conversation

@byroot
Copy link

@byroot byroot commented Feb 27, 2026

This makes the gem a bit more GC friendly. Objects with RUBY_TYPED_WB_PROTECTED can be promoted to the old generation (hence not be scanned on minor GC cycles), however they MUST trigger write barriers using the RB_OBJ_WRITE macro when updating a reference.

This makes the gem a bit more GC friendly. Objects with `RUBY_TYPED_WB_PROTECTED`
can be promoted to the old generation (hence not be scanned on minor GC cycles),
however they MUST trigger write barriers using the `RB_OBJ_WRITE` macro when updating
a reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant