Skip to content

Commit

Permalink
JIT: refine x86 gc reg kill set for CORINFO_HELP_INIT_PINVOKE_FRAME (d…
Browse files Browse the repository at this point in the history
…otnet#17421)

This helper only kills EAX/ESI on x86, so make sure that is reflected in
the gc kill set.

Resolves #17404.
  • Loading branch information
AndyAyersMS authored Apr 5, 2018
1 parent 14d55b8 commit e206e83
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jit/codegencommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e206e83

Please sign in to comment.