Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve MacLean <Steve.MacLean@microsoft.com>2021-03-21 03:42:59 +0300
committerGitHub <noreply@github.com>2021-03-21 03:42:59 +0300
commitef801ed49e1bc1a13d901b23fd067bc3baf2bf68 (patch)
tree1648aac5717aa9db4067009a0d48cc6881c44921 /src/coreclr
parent493ba8d90f96adc6c3a218c7fad3428ebac247ec (diff)
Apple Silicon Fix EEJitManager::CleanupCodeHeaps() (#49942)
Diffstat (limited to 'src/coreclr')
-rw-r--r--src/coreclr/vm/codeman.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/coreclr/vm/codeman.cpp b/src/coreclr/vm/codeman.cpp
index 97a4d5a7cff..23032b2faaa 100644
--- a/src/coreclr/vm/codeman.cpp
+++ b/src/coreclr/vm/codeman.cpp
@@ -3448,6 +3448,10 @@ void EEJitManager::CleanupCodeHeaps()
HostCodeHeap *pHeap = m_cleanupList;
m_cleanupList = NULL;
+#if defined(HOST_OSX) && defined(HOST_ARM64)
+ auto jitWriteEnableHolder = PAL_JITWriteEnable(true);
+#endif // defined(HOST_OSX) && defined(HOST_ARM64)
+
while (pHeap)
{
HostCodeHeap *pNextHeap = pHeap->m_pNextHeapToRelease;