File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -2092,6 +2092,12 @@ rb_obj_id(VALUE obj)
2092
2092
return rb_find_object_id (rb_gc_get_objspace (), obj , object_id );
2093
2093
}
2094
2094
2095
+ bool
2096
+ rb_obj_id_p (VALUE obj )
2097
+ {
2098
+ return rb_shape_obj_has_id (obj );
2099
+ }
2100
+
2095
2101
static enum rb_id_table_iterator_result
2096
2102
cc_table_memsize_i (VALUE ccs_ptr , void * data_ptr )
2097
2103
{
Original file line number Diff line number Diff line change 29
29
#include "darray.h"
30
30
#include "gc/gc.h"
31
31
#include "gc/gc_impl.h"
32
- #include "shape.h"
33
32
34
33
#ifndef BUILDING_MODULAR_GC
35
34
# include "probes.h"
@@ -6113,7 +6112,7 @@ rb_gc_impl_object_metadata(void *objspace_ptr, VALUE obj)
6113
6112
if (RVALUE_MARKING (objspace , obj )) SET_ENTRY (marking , Qtrue );
6114
6113
if (RVALUE_MARKED (objspace , obj )) SET_ENTRY (marked , Qtrue );
6115
6114
if (RVALUE_PINNED (objspace , obj )) SET_ENTRY (pinned , Qtrue );
6116
- if (rb_shape_obj_has_id (obj )) SET_ENTRY (object_id , rb_obj_id (obj ));
6115
+ if (rb_obj_id_p (obj )) SET_ENTRY (object_id , rb_obj_id (obj ));
6117
6116
if (FL_TEST (obj , FL_SHAREABLE )) SET_ENTRY (shareable , Qtrue );
6118
6117
6119
6118
object_metadata_entries [n ].name = 0 ;
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ size_t rb_obj_memsize_of(VALUE obj);
72
72
void rb_gc_prepare_heap_process_object (VALUE obj );
73
73
bool ruby_free_at_exit_p (void );
74
74
bool rb_memerror_reentered (void );
75
+ bool rb_obj_id_p (VALUE );
75
76
76
77
#if USE_MODULAR_GC
77
78
bool rb_gc_event_hook_required_p (rb_event_flag_t event );
Original file line number Diff line number Diff line change 8
8
#include "gc/gc.h"
9
9
#include "gc/gc_impl.h"
10
10
#include "gc/mmtk/mmtk.h"
11
- #include "shape.h"
12
11
13
12
#include "ccan/list/list.h"
14
13
#include "darray.h"
@@ -1215,7 +1214,7 @@ rb_gc_impl_object_metadata(void *objspace_ptr, VALUE obj)
1215
1214
n++; \
1216
1215
} while (0)
1217
1216
1218
- if (rb_shape_obj_has_id (obj )) SET_ENTRY (object_id , rb_obj_id (obj ));
1217
+ if (rb_obj_id_p (obj )) SET_ENTRY (object_id , rb_obj_id (obj ));
1219
1218
1220
1219
object_metadata_entries [n ].name = 0 ;
1221
1220
object_metadata_entries [n ].val = 0 ;
You can’t perform that action at this time.
0 commit comments