cmd/compile: don't mark heap-shadowed variables live #18904
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Performance
Milestone
Because
t
escapes, we need to allocate it on the heap. What happens to the stack copy inf
's arg area?Currently, we zero the stack copy at the start of the function, and mark that value as live throughout the function. That's safe, but probably better to mark it dead throughout the function (except during the post deferreturn code which copies the values back to the stack?) and then not bother zeroing it.
@rsc
The text was updated successfully, but these errors were encountered: