Skip to content

Fix GC Issue#400

Open
cfis wants to merge 2 commits intomasterfrom
dev
Open

Fix GC Issue#400
cfis wants to merge 2 commits intomasterfrom
dev

Conversation

@cfis
Copy link
Collaborator

@cfis cfis commented Mar 14, 2026

rb_gc_register_address() can trigger GC, so Anchor must register its VALUE slot before storing a heap object in it. Use RB_GC_GUARD(value) to keep the VALUE alive through the end of the method. #399

cfis added 2 commits March 13, 2026 18:27
…VALUE slot before storing a heap object in it. Use RB_GC_GUARD(value) to keep the VALUE alive through the end of the method.
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