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

Commit 1bd0ce6

Browse files
author
John Chen (CLR)
committed
Disable CER code that is causing access violation
Resolves issue dotnet/corefx#12412.
1 parent 6a4ba26 commit 1bd0ce6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vm/constrainedexecutionregion.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,6 +1745,10 @@ void PrepopulateGenericHandleCache(DictionaryLayout *pDictionaryLayout,
17451745
MethodDesc *pMD,
17461746
MethodTable *pMT)
17471747
{
1748+
#ifdef FEATURE_CORECLR
1749+
// Disable this function in CoreCLR to work around https://github.com/dotnet/corefx/issues/12412.
1750+
LIMITED_METHOD_CONTRACT;
1751+
#else
17481752
CONTRACTL {
17491753
THROWS;
17501754
GC_TRIGGERS;
@@ -1768,6 +1772,7 @@ void PrepopulateGenericHandleCache(DictionaryLayout *pDictionaryLayout,
17681772
}
17691773
pOverflows = pOverflows->GetNextLayout();
17701774
}
1775+
#endif // FEATURE_CORECLR
17711776
}
17721777

17731778
#ifdef FEATURE_PREJIT

0 commit comments

Comments
 (0)