summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-06-06 20:54:21 +0200
committerJean Boussier <[email protected]>2025-06-07 18:30:44 +0200
commit54edc930f9f0a658da45cfcef46648d1b6f82467 ()
treea1c3aa5061067060c41847d3487e932fe4f80de4
parent689ec5114624978f47edcba4f055e62017e4ac36 (diff)
Leave the shape_id_t highest bit unused to avoid crashing YJIT
Notes: Merged: https://.com/ruby/ruby/pull/13556
-rw-r--r--shape.h2
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ STATIC_ASSERT(shape_id_num_bits, SHAPE_ID_NUM_BITS == sizeof(shape_id_t) * CHAR_
#define SHAPE_ID_FL_NON_CANONICAL_MASK (SHAPE_FL_NON_CANONICAL_MASK << SHAPE_ID_OFFSET_NUM_BITS)
#define SHAPE_ID_HEAP_INDEX_BITS 3
-#define SHAPE_ID_HEAP_INDEX_OFFSET (SHAPE_ID_NUM_BITS - SHAPE_ID_HEAP_INDEX_BITS)
#define SHAPE_ID_HEAP_INDEX_MAX ((1 << SHAPE_ID_HEAP_INDEX_BITS) - 1)
#define SHAPE_ID_HEAP_INDEX_MASK (SHAPE_ID_HEAP_INDEX_MAX << SHAPE_ID_HEAP_INDEX_OFFSET)