Skip to content

Commit

Permalink
Reserve fast dictionary slots for Tier1 code (dotnet/coreclr#22619)
Browse files Browse the repository at this point in the history
Disable use of fast dictionary slots for R2R images when tiered JITing is enabled.

Fixes dotnet/coreclr#22400

Commit migrated from dotnet/coreclr@bae641f
  • Loading branch information
jkotas authored Feb 15, 2019
1 parent ef302b0 commit d52be3f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/coreclr/src/vm/genericdict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ DictionaryLayout::FindTokenWorker(LoaderAllocator * pAllocator,
}
CONTRACTL_END

#ifndef FEATURE_NATIVE_IMAGE_GENERATION
// If the tiered compilation is on, save the fast dictionary slots for the hot Tier1 code
if (g_pConfig->TieredCompilation() && signatureSource == FromReadyToRunImage)
{
pResult->signature = pSig;
return FALSE;
}
#endif

BOOL isFirstBucket = TRUE;

// First bucket also contains type parameters
Expand Down

0 comments on commit d52be3f

Please sign in to comment.