Enable portable fast alloc helpers on ARM64 Windows. (dotnet/coreclr#22541)
authorAditya Mandaleeka <adityamandaleeka@users.noreply.github.com>
Tue, 12 Feb 2019 18:20:35 +0000 (10:20 -0800)
committerJan Kotas <jkotas@microsoft.com>
Tue, 12 Feb 2019 18:20:35 +0000 (10:20 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/6e35bf13deec46f20e5468e5345f412734a35ef8

src/coreclr/src/vm/arm64/stubs.cpp
src/coreclr/src/vm/object.cpp

index 83b2a21..b5dee2e 100644 (file)
@@ -1084,7 +1084,6 @@ void JIT_TailCall()
 #if !defined(DACCESS_COMPILE) && !defined(CROSSGEN_COMPILE)
 void InitJITHelpers1()
 {
-#ifdef FEATURE_PAL // TODO
     STANDARD_VM_CONTRACT;
 
     _ASSERTE(g_SystemInfo.dwNumberOfProcessors != 0);
@@ -1107,7 +1106,6 @@ void InitJITHelpers1()
             ECall::DynamicallyAssignFCallImpl(GetEEFuncEntryPoint(AllocateString_MP_FastPortable), ECall::FastAllocateString);
         }
     }
-#endif
 
     JIT_UpdateWriteBarrierState(GCHeapUtilities::IsServerHeap());
 }
index e008486..fb1294d 100644 (file)
@@ -779,6 +779,8 @@ void ArrayBase::AssertArrayTypeDescLoaded()
 {
     _ASSERTE (m_pMethTab->IsArray());
 
+    ENABLE_FORBID_GC_LOADER_USE_IN_THIS_SCOPE();
+
     // The type should already be loaded
     // See also: MethodTable::DoFullyLoad
     TypeHandle th = ClassLoader::LoadArrayTypeThrowing(m_pMethTab->GetApproxArrayElementTypeHandle(),