Skip to content

Implement Write Barriers#132

Merged
SpringMT merged 1 commit intoSpringMT:mainfrom
byroot:write-barrier
Mar 1, 2026
Merged

Implement Write Barriers#132
SpringMT merged 1 commit intoSpringMT:mainfrom
byroot:write-barrier

Conversation

@byroot
Copy link
Contributor

@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.
@SpringMT
Copy link
Owner

SpringMT commented Mar 1, 2026

Thank you!

@SpringMT SpringMT merged commit 7bccb90 into SpringMT:main Mar 1, 2026
8 checks passed
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.

2 participants