From 469a324391dc49f92a411c5169145606fd50659b Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Mon, 14 Mar 2016 11:06:11 -0700 Subject: ARM64: Fix GC hole in indirect call site This fixes dotnet#3663. Indirect call (```br``` or ```blr```) target is encoded with a register which the first operand internally represents. Unfortunately, call sites use the first two operands to hold GC callee-save registers. So, this GC register information was overridden by the call target operand in the indirect(virtual) call sites. The fix is to use 3rd/4th operands instead of 1st/2nd operands to hold GC info. Ideally we should use different field name and also ensure constness when we set up the operand so that it's never written more than once. https://github.com/dotnet/coreclr/issues/3693 is filed. --- src/jit/emit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jit/emit.h') diff --git a/src/jit/emit.h b/src/jit/emit.h index c03e902afc..c35532233e 100644 --- a/src/jit/emit.h +++ b/src/jit/emit.h @@ -943,7 +943,7 @@ protected: } // Note that we use the _idReg3 and _idReg4 fields to hold - // the live gcrefReg mask for the call instructions on arm + // the live gcrefReg mask for the call instructions on arm64 // struct { -- cgit v1.2.3