Skip to content

Commit 0b8d8f9

Browse files
committed
Check GCHeapUtilities::UseThreadAllocationContexts()
1 parent 2e50f74 commit 0b8d8f9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/coreclr/vm/runtimehandles.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,11 @@ FCIMPL1(Object*, RuntimeTypeHandle::GetThreadLocalAllocInternal, MethodTable* pM
11501150
_ASSERTE(pMT != nullptr);
11511151
_ASSERTE(pMT->IsValueType());
11521152

1153+
if (GCHeapUtilities::UseThreadAllocationContexts())
1154+
{
1155+
return NULL;
1156+
}
1157+
11531158
#ifdef FEATURE_64BIT_ALIGNMENT
11541159
if (pMT->RequiresAlign8())
11551160
{

0 commit comments

Comments
 (0)