Skip to content

Commit d61ca90

Browse files
[clr-interp] Handle some forms of unboxing stub (#118501)
When encountering an UnboxingStub to execute, invoke it as a compiled method instead of as a interpreted one
1 parent 96b3285 commit d61ca90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/vm/interpexec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1973,7 +1973,7 @@ void InterpExecMethod(InterpreterFrame *pInterpreterFrame, InterpMethodContextFr
19731973
pInterpreterFrame->SetTopInterpMethodContextFrame(pFrame);
19741974
GCX_PREEMP();
19751975
// Attempt to setup the interpreter code for the target method.
1976-
if (targetMethod->IsIL() || targetMethod->IsNoMetadata())
1976+
if ((targetMethod->IsIL() || targetMethod->IsNoMetadata()) && !targetMethod->IsUnboxingStub())
19771977
{
19781978
targetMethod->PrepareInitialCode(CallerGCMode::Coop);
19791979
}

0 commit comments

Comments
 (0)