File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 4
4
#include "ruby/assert.h"
5
5
#include "ruby/atomic.h"
6
6
#include "ruby/debug.h"
7
+ #include "internal/object.h"
7
8
8
9
#include "gc/gc.h"
9
10
#include "gc/gc_impl.h"
@@ -453,6 +454,7 @@ rb_gc_impl_init(void)
453
454
{
454
455
VALUE gc_constants = rb_hash_new ();
455
456
rb_hash_aset (gc_constants , ID2SYM (rb_intern ("BASE_SLOT_SIZE" )), SIZET2NUM (sizeof (VALUE ) * 5 ));
457
+ rb_hash_aset (gc_constants , ID2SYM (rb_intern ("RBASIC_SIZE" )), SIZET2NUM (sizeof (struct RBasic )));
456
458
rb_hash_aset (gc_constants , ID2SYM (rb_intern ("RVALUE_OVERHEAD" )), INT2NUM (0 ));
457
459
rb_hash_aset (gc_constants , ID2SYM (rb_intern ("RVARGC_MAX_ALLOCATE_SIZE" )), LONG2FIX (640 ));
458
460
// Pretend we have 5 size pools
@@ -1019,7 +1021,7 @@ rb_gc_impl_shutdown_call_finalizer(void *objspace_ptr)
1019
1021
1020
1022
if (rb_gc_shutdown_call_finalizer_p (obj )) {
1021
1023
rb_gc_obj_free (objspace_ptr , obj );
1022
- RBASIC (obj )-> flags = 0 ;
1024
+ RBASIC_RESET_FLAGS (obj );
1023
1025
}
1024
1026
}
1025
1027
mmtk_free_raw_vec_of_obj_ref (registered_candidates );
You can’t perform that action at this time.
0 commit comments