summaryrefslogtreecommitdiff
path: root/internal/gc.h
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-03-12 13:50:50 -0400
committerPeter Zhu <[email protected]>2024-03-13 09:55:52 -0400
commit6ad347a1055902abfd5a7f5233dd8d18e1f1360b ()
tree9d906ec788ca0e4a1bb731b4b72300f236d27271 /internal/gc.h
parentd1eaa97ec3cdbe38605379fc87a55987d6802dc7 (diff)
Don't directly read the SIZE_POOL_COUNT in shapes
This removes the assumption about SIZE_POOL_COUNT for shapes.
-rw-r--r--internal/gc.h2
1 files changed, 2 insertions, 0 deletions
@@ -223,6 +223,8 @@ static inline void ruby_sized_xfree_inlined(void *ptr, size_t size);
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);
bool rb_gc_is_ptr_to_obj(const void *ptr);