|
47 | 47 |
|
48 | 48 | static ID id_frozen; |
49 | 49 | static ID id_t_object; |
| 50 | +ID ruby_internal_object_id; // extern |
50 | 51 |
|
51 | 52 | #define LEAF 0 |
52 | 53 | #define BLACK 0x0 |
@@ -732,7 +733,7 @@ shape_transition_too_complex(rb_shape_t *original_shape) |
732 | 733 |
|
733 | 734 | if (original_shape->flags & SHAPE_FL_HAS_OBJECT_ID) { |
734 | 735 | bool dont_care; |
735 | | - next_shape = get_next_shape_internal(next_shape, internal_object_id, SHAPE_OBJ_ID, &dont_care, false); |
| 736 | + next_shape = get_next_shape_internal(next_shape, ruby_internal_object_id, SHAPE_OBJ_ID, &dont_care, false); |
736 | 737 | } |
737 | 738 |
|
738 | 739 | return next_shape; |
@@ -775,7 +776,7 @@ rb_shape_object_id_shape(VALUE obj) |
775 | 776 | } |
776 | 777 |
|
777 | 778 | bool dont_care; |
778 | | - rb_shape_t* next_shape = get_next_shape_internal(shape, internal_object_id, SHAPE_OBJ_ID, &dont_care, true); |
| 779 | + rb_shape_t* next_shape = get_next_shape_internal(shape, ruby_internal_object_id, SHAPE_OBJ_ID, &dont_care, true); |
779 | 780 | RUBY_ASSERT(next_shape); |
780 | 781 | return next_shape; |
781 | 782 | } |
@@ -1363,7 +1364,7 @@ Init_default_shapes(void) |
1363 | 1364 |
|
1364 | 1365 | id_frozen = rb_make_internal_id(); |
1365 | 1366 | id_t_object = rb_make_internal_id(); |
1366 | | - internal_object_id = rb_make_internal_id(); |
| 1367 | + ruby_internal_object_id = rb_make_internal_id(); |
1367 | 1368 |
|
1368 | 1369 | #ifdef HAVE_MMAP |
1369 | 1370 | size_t shape_cache_mmap_size = rb_size_mul_or_raise(REDBLACK_CACHE_SIZE, sizeof(redblack_node_t), rb_eRuntimeError); |
@@ -1424,9 +1425,9 @@ Init_default_shapes(void) |
1424 | 1425 | // ran out of shapes. |
1425 | 1426 | rb_shape_t *shape; |
1426 | 1427 | shape = get_next_shape_internal(too_complex_shape, id_frozen, SHAPE_FROZEN, &dont_care, true); |
1427 | | - get_next_shape_internal(shape, internal_object_id, SHAPE_OBJ_ID, &dont_care, true); |
| 1428 | + get_next_shape_internal(shape, ruby_internal_object_id, SHAPE_OBJ_ID, &dont_care, true); |
1428 | 1429 |
|
1429 | | - shape = get_next_shape_internal(too_complex_shape, internal_object_id, SHAPE_OBJ_ID, &dont_care, true); |
| 1430 | + shape = get_next_shape_internal(too_complex_shape, ruby_internal_object_id, SHAPE_OBJ_ID, &dont_care, true); |
1430 | 1431 | get_next_shape_internal(shape, id_frozen, SHAPE_FROZEN, &dont_care, true); |
1431 | 1432 | } |
1432 | 1433 |
|
|
0 commit comments