[ruby/mmtk] Remove dependance on internal/object.h
authorPeter Zhu <[email protected]>
Thu, 29 May 2025 14:46:22 +0000 (29 10:46 -0400)
committergit <[email protected]>
Thu, 29 May 2025 14:46:49 +0000 (29 14:46 +0000)
https://github.com/ruby/mmtk/commit/fdc13963f0

gc/mmtk/mmtk.c

index c9bb0ab..41e7f13 100644 (file)
@@ -4,7 +4,6 @@
 #include "ruby/assert.h"
 #include "ruby/atomic.h"
 #include "ruby/debug.h"
-#include "internal/object.h"
 
 #include "gc/gc.h"
 #include "gc/gc_impl.h"
@@ -1021,7 +1020,7 @@ rb_gc_impl_shutdown_call_finalizer(void *objspace_ptr)
 
         if (rb_gc_shutdown_call_finalizer_p(obj)) {
             rb_gc_obj_free(objspace_ptr, obj);
-            RBASIC_RESET_FLAGS(obj);
+            RBASIC(obj)->flags = 0;
         }
     }
     mmtk_free_raw_vec_of_obj_ref(registered_candidates);