Skip to content

Commit c230981

Browse files
committed
[release/5.0] Fix GC hole with STOREIND of LCL_VAR_ADDR/LCL_FLD_ADDR
Backport of (part of) dotnet#45818 to release/5.0 Fixes: dotnet#45557 Reported by Roslyn. Bad GC info can lead to an unexplained crash that can't easily be found or worked around. Manual, new unit test, CLR outerloop, SuperPMI asm diffs. Low
1 parent 5d131e0 commit c230981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/src/jit/emitxarch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3113,7 +3113,7 @@ void emitter::emitInsStoreInd(instruction ins, emitAttr attr, GenTreeStoreInd* m
31133113
}
31143114

31153115
// Updating variable liveness after instruction was emitted
3116-
codeGen->genUpdateLife(varNode);
3116+
codeGen->genUpdateLife(mem);
31173117
return;
31183118
}
31193119

0 commit comments

Comments
 (0)