Skip to content

Add function rb_data_free#7438

Merged
peterzhu2118 merged 1 commit intoruby:masterfrom
Shopify:pz-data-free-func
Mar 7, 2023
Merged

Add function rb_data_free#7438
peterzhu2118 merged 1 commit intoruby:masterfrom
Shopify:pz-data-free-func

Conversation

@peterzhu2118
Copy link
Member

This commit adds a function rb_data_free used by obj_free and rb_objspace_call_finalizer to free T_DATA objects. This change also means that RUBY_TYPED_FREE_IMMEDIATELY objects can be freed immediately in rb_objspace_call_finalizer rather than being created into a zombie.

This commit adds a function rb_data_free used by obj_free and
rb_objspace_call_finalizer to free T_DATA objects. This change also
means that RUBY_TYPED_FREE_IMMEDIATELY objects can be freed immediately
in rb_objspace_call_finalizer rather than being created into a zombie.
@peterzhu2118 peterzhu2118 merged commit c78138a into ruby:master Mar 7, 2023
@peterzhu2118 peterzhu2118 deleted the pz-data-free-func branch March 7, 2023 13:28
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