mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
gc.h: move rb_objspace_garbage_object_p to internal/gc.h
... to allow class.c to use the function
This commit is contained in:
parent
5c892da7d7
commit
e8086e275b
Notes:
git
2021-11-10 10:08:58 +09:00
3 changed files with 1 additions and 2 deletions
1
class.c
1
class.c
|
@ -29,7 +29,6 @@
|
|||
#include "internal/variable.h"
|
||||
#include "ruby/st.h"
|
||||
#include "vm_core.h"
|
||||
#include "gc.h"
|
||||
|
||||
#define id_attached id__attached__
|
||||
|
||||
|
|
1
gc.h
1
gc.h
|
@ -127,7 +127,6 @@ void rb_objspace_reachable_objects_from_root(void (func)(const char *category, V
|
|||
int rb_objspace_markable_object_p(VALUE obj);
|
||||
int rb_objspace_internal_object_p(VALUE obj);
|
||||
int rb_objspace_marked_object_p(VALUE obj);
|
||||
int rb_objspace_garbage_object_p(VALUE obj);
|
||||
|
||||
void rb_objspace_each_objects(
|
||||
int (*callback)(void *start, void *end, size_t stride, void *data),
|
||||
|
|
|
@ -99,6 +99,7 @@ VALUE rb_class_allocate_instance(VALUE klass);
|
|||
void rb_gc_ractor_newobj_cache_clear(rb_ractor_newobj_cache_t *newobj_cache);
|
||||
size_t rb_gc_obj_slot_size(VALUE obj);
|
||||
bool rb_gc_size_allocatable_p(size_t size);
|
||||
int rb_objspace_garbage_object_p(VALUE obj);
|
||||
|
||||
RUBY_SYMBOL_EXPORT_BEGIN
|
||||
/* gc.c (export) */
|
||||
|
|
Loading…
Reference in a new issue