diff options
author | Peter Zhu <[email protected]> | 2024-03-12 14:27:34 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-03-13 09:55:52 -0400 |
commit | 6b0434c0f721a62d617b26986565985598c7b8c9 (patch) | |
tree | 14199009db98d0dc8137b794774bd81914f7eaa3 /object.c | |
parent | 6ad347a1055902abfd5a7f5233dd8d18e1f1360b (diff) |
Don't create per size pool shapes for non-T_OBJECT
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -135,7 +135,7 @@ rb_class_allocate_instance(VALUE klass) RUBY_ASSERT(rb_shape_get_shape(obj)->type == SHAPE_ROOT); // Set the shape to the specific T_OBJECT shape. - ROBJECT_SET_SHAPE_ID(obj, SIZE_POOL_COUNT + rb_gc_size_pool_id_for_size(size)); + ROBJECT_SET_SHAPE_ID(obj, (shape_id_t)(rb_gc_size_pool_id_for_size(size) + 1)); #if RUBY_DEBUG RUBY_ASSERT(!rb_shape_obj_too_complex(obj)); |