summaryrefslogtreecommitdiff
path: root/ext/pathname
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2026-05-18 14:50:21 +0100
committerMatt Valentine-House <matt@eightbitraptor.com>2026-05-20 11:44:12 +0100
commit332315a46487e11a5712388e43ad65bd5f97b72b (patch)
tree8ab426b4d210b1d922a28c484fe8d48d65af2458 /ext/pathname
parent0dc0280bb2542a7c8721536ce998bfb8f2401b5d (diff)
Preserve usable slot size when RVALUE_OVERHEAD is non-zeroHEADmaster
We made a mistake calculating slot sizes during the heap slot sizes refactor. Previously BASE_SLOT_SIZE included RVALUE_OVERHEAD, this was lost during the refactor to use the SLOT macro. The result of this was that when Ruby was compiled with -DRUBY_DEBUG it was assumed that the last word of each slot was RVALUE_OVERHEAD. Because this hadn't been taken into account at allocation time, all slots were effectively one word shorter. This PR adds RVALUE_OVERHEAD to the size calcualted in the SLOT macro directly, so it will be added on to the physically allocated size at allocation time.
Diffstat (limited to 'ext/pathname')
0 files changed, 0 insertions, 0 deletions