Skip to content

Commit ade0d7b

Browse files
ko1hsbt
authored andcommitted
catch up modular-gc
1 parent 947f4fe commit ade0d7b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

gc/gc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ MODULAR_GC_FN bool rb_memerror_reentered(void);
9696
MODULAR_GC_FN bool rb_obj_id_p(VALUE);
9797
MODULAR_GC_FN void rb_gc_before_updating_jit_code(void);
9898
MODULAR_GC_FN void rb_gc_after_updating_jit_code(void);
99+
MODULAR_GC_FN bool rb_gc_obj_shareable_p(VALUE);
100+
MODULAR_GC_FN void rb_gc_rp(VALUE);
99101

100102
#if USE_MODULAR_GC
101103
MODULAR_GC_FN bool rb_gc_event_hook_required_p(rb_event_flag_t event);

gc/mmtk/mmtk.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,12 @@ rb_gc_impl_copy_attributes(void *objspace_ptr, VALUE dest, VALUE obj)
12601260
rb_gc_impl_copy_finalizer(objspace_ptr, dest, obj);
12611261
}
12621262

1263+
bool
1264+
rb_gc_impl_checking_shareable(void *ptr)
1265+
{
1266+
return false;
1267+
}
1268+
12631269
// GC Identification
12641270

12651271
const char *

0 commit comments

Comments
 (0)