Skip to content

Commit 20da483

Browse files
committed
Move rb_gc_verify_shareable to gc.c
Sync ruby/ruby@827f11f
1 parent 0aa566f commit 20da483

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

gc/gc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ const char *rb_obj_info(VALUE obj);
6363
size_t rb_obj_memsize_of(VALUE obj);
6464
bool ruby_free_at_exit_p(void);
6565
void rb_objspace_reachable_objects_from_root(void (func)(const char *category, VALUE, void *), void *passing_data);
66+
void rb_gc_verify_shareable(VALUE);
6667

6768
MODULAR_GC_FN unsigned int rb_gc_vm_lock(const char *file, int line);
6869
MODULAR_GC_FN void rb_gc_vm_unlock(unsigned int lev, const char *file, int line);

gc/mmtk/mmtk.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,12 +1260,6 @@ 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-
12691263
// GC Identification
12701264

12711265
const char *

0 commit comments

Comments
 (0)