Skip to content

Fix object ID for finalizers#33

Merged
peterzhu2118 merged 1 commit into
mainfrom
fix-obj-id-finalizer
May 21, 2025
Merged

Fix object ID for finalizers#33
peterzhu2118 merged 1 commit into
mainfrom
fix-obj-id-finalizer

Conversation

@peterzhu2118
Copy link
Copy Markdown
Member

We should get the object ID for finalizers in rb_gc_impl_define_finalizer instead of when we create the finalizer job in make_final_job because when we are in multi-Ractor mode, object ID needs to walk the references which allocates an identity hash table. We cannot allocate in make_final_job because it is in a MMTk worker thread.

We should get the object ID for finalizers in rb_gc_impl_define_finalizer
instead of when we create the finalizer job in make_final_job because
when we are in multi-Ractor mode, object ID needs to walk the references
which allocates an identity hash table. We cannot allocate in make_final_job
because it is in a MMTk worker thread.
@peterzhu2118 peterzhu2118 merged commit e007176 into main May 21, 2025
2 of 20 checks passed
@peterzhu2118 peterzhu2118 deleted the fix-obj-id-finalizer branch May 21, 2025 02:30
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