diff options
author | Peter Zhu <[email protected]> | 2025-05-30 10:40:58 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2025-06-02 09:52:25 -0400 |
commit | acc273a8a44f2238ad2d74c95ca00c91ab2047f3 (patch) | |
tree | cc4dca1bd8b81db4ceaf7e6db8972276508be591 /gc/default/default.c | |
parent | cfe17520ba209c18ee1e39e36d50c5a01d6d0cd6 (diff) |
Remove dependancy of default.c on internal/object.h
We don't want the default GC to depend on Ruby internals so we can build
it as a modular GC.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13476
Diffstat (limited to 'gc/default/default.c')
-rw-r--r-- | gc/default/default.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gc/default/default.c b/gc/default/default.c index 40e551a95f..1b45d4b724 100644 --- a/gc/default/default.c +++ b/gc/default/default.c @@ -28,7 +28,6 @@ #include "ruby/util.h" #include "ruby/vm.h" #include "ruby/internal/encoding/string.h" -#include "internal/object.h" #include "ccan/list/list.h" #include "darray.h" #include "gc/gc.h" @@ -2972,7 +2971,7 @@ rb_gc_impl_shutdown_free_objects(void *objspace_ptr) if (RB_BUILTIN_TYPE(vp) != T_NONE) { rb_gc_obj_free_vm_weak_references(vp); if (rb_gc_obj_free(objspace, vp)) { - RBASIC_RESET_FLAGS(vp); + RBASIC(vp)->flags = 0; } } } @@ -3046,7 +3045,7 @@ rb_gc_impl_shutdown_call_finalizer(void *objspace_ptr) if (rb_gc_shutdown_call_finalizer_p(vp)) { rb_gc_obj_free_vm_weak_references(vp); if (rb_gc_obj_free(objspace, vp)) { - RBASIC_RESET_FLAGS(vp); + RBASIC(vp)->flags = 0; } } } |