Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 2659efd

Browse files
authored
Merge pull request #11117 from briansull/zapsig-fix
ReadyToRun/Crossgen: Disable cross module generic instantiations from profile data
2 parents 9f9ef39 + e13760c commit 2659efd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vm/siginfo.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,10 @@ TypeHandle SigPointer::GetTypeHandleThrowing(
11991199

12001200
PREFIX_ASSUME(pZapSigContext != NULL);
12011201
pModule = pZapSigContext->GetZapSigModule()->GetModuleFromIndex(ix);
1202-
if (pModule != NULL)
1202+
1203+
// For ReadyToRunCompilation we return a null TypeHandle when we reference a non-local module
1204+
//
1205+
if ((pModule != NULL) && pModule->IsInCurrentVersionBubble())
12031206
{
12041207
thRet = psig.GetTypeHandleThrowing(pModule,
12051208
pTypeContext,

0 commit comments

Comments
 (0)