summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-06-11 13:08:56 +0200
committerJean Boussier <[email protected]>2025-06-11 14:21:43 +0200
commit4463ac264dc44979ea74bbca3de58ae72d5eea71 (patch)
tree01c89fbc5ab0940e2ef786552752beaf6543717d
parent59fad961b8c8b70ddac0c450963d51e5076c2c47 (diff)
shape.h: remove YJIT workaround
YJIT x86 backend would crahs if the shape_id top bit was set. This should have been fixed now.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13585
-rw-r--r--shape.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/shape.h b/shape.h
index 7fec93af9f..6cb5075523 100644
--- a/shape.h
+++ b/shape.h
@@ -19,7 +19,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 - 1) // FIXME: -1 to avoid crashing YJIT
+#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)