You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spilling can overwrite adjacent stack parameters on ARM64 macOS ABI #67188
@AndyAyersMS I can't comment in #52039 (comment) because it is locked but I think you are right.
The root case is that there are 2 scenarios:
local lives in a register and due to register pressure we need to spill it and we allocate a new stack slot for it. This stack slot always is at least TARGET_POINTER_SIZE wide;
local comes on a stack, gets temporary allocated to a register and then needs to be spilled. We don't need to allocate a new spill stack space because because we can reuse the stack index that it came on. However, on mac arm64 abi this stack space can be less than TARGET_POINTER_SIZE.
Activity
am11 commentedon Mar 26, 2022
Similar case #66720 (comment)
sandreenko commentedon Mar 28, 2022
@AndyAyersMS I can't comment in #52039 (comment) because it is locked but I think you are right.
The root case is that there are 2 scenarios:
I would try a radical fix first in:
runtime/src/coreclr/jit/lclvars.cpp
Lines 3820 to 3824 in 6627183
instead do:
AndyAyersMS commentedon Mar 28, 2022
I'll fix this since OSR is seeing a related issue.
JIT: Use small register types for some enregisterable locals
JIT: Use small register types for some enregisterable locals (#67274)