diff options
author | Peter Zhu <[email protected]> | 2024-07-16 15:38:48 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-07-17 09:01:42 -0400 |
commit | 403f44ec2c5047367271f5ec7a07b0460631321b (patch) | |
tree | 36a3bf29bbb1b8fa539ed11499e0d44354b3d45a /yjit/Cargo.lock | |
parent | 690ea013cac2d3c4eb149c8e7e5d794dfe874abe (diff) |
Make OBJ_ID_INCREMENT == RUBY_IMMEDIATE_MASK + 1
All the non-GC objects (i.e. immediates) have addresses such that
`obj % RUBY_IMMEDIATE_MASK != 0` (except for `Qfalse`, which is 0). We
can define `OBJ_ID_INCREMENT` as `RUBY_IMMEDIATE_MASK + 1` which should
guarantee that GC objects never have conflicting object IDs with
immediates.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11178
Diffstat (limited to 'yjit/Cargo.lock')
0 files changed, 0 insertions, 0 deletions