From e206e832561987b4997afbb728099c3f3f4c911a Mon Sep 17 00:00:00 2001 From: Andy Ayers Date: Wed, 4 Apr 2018 17:54:27 -0700 Subject: [PATCH] JIT: refine x86 gc reg kill set for CORINFO_HELP_INIT_PINVOKE_FRAME (#17421) This helper only kills EAX/ESI on x86, so make sure that is reflected in the gc kill set. Resolves #17404. --- src/jit/codegencommon.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jit/codegencommon.cpp b/src/jit/codegencommon.cpp index f5dd308f851e..99902dc7bc26 100644 --- a/src/jit/codegencommon.cpp +++ b/src/jit/codegencommon.cpp @@ -763,6 +763,11 @@ regMaskTP Compiler::compNoGCHelperCallKillSet(CorInfoHelpFunc helper) return RBM_CALLEE_GCTRASH_WRITEBARRIER; #endif +#if defined(_TARGET_X86_) + case CORINFO_HELP_INIT_PINVOKE_FRAME: + return RBM_INIT_PINVOKE_FRAME_TRASH; +#endif // defined(_TARGET_X86_) + default: return RBM_CALLEE_TRASH_NOGC; }