Skip to content

Commit 9d00363

Browse files
authored
Update runtimehandles.cpp
1 parent 9dbafa3 commit 9d00363

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/coreclr/vm/runtimehandles.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,10 +1149,12 @@ FCIMPL1(Object*, RuntimeTypeHandle::InternalAllocNoChecks_FastPath, MethodTable*
11491149

11501150
_ASSERTE(pMT != nullptr);
11511151

1152+
#if (defined(TARGET_X86) || defined(TARGET_AMD64)) && !defined(TARGET_UNIX)
11521153
if (!GCHeapUtilities::UseThreadAllocationContexts())
11531154
{
11541155
return NULL;
11551156
}
1157+
#endif
11561158

11571159
if (pMT->HasFinalizer())
11581160
{

0 commit comments

Comments
 (0)