Skip to content

Commit 0c6c076

Browse files
committed
disable AllocationQuantumIsNotAnIssueForNetCore21Plus for InProcessToolchain as it suffers from #1542 (Tiered JIT allocating memory in background)
1 parent aba8207 commit 0c6c076

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/BenchmarkDotNet.IntegrationTests/MemoryDiagnoserTests.cs

+2
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ public void AllocationQuantumIsNotAnIssueForNetCore21Plus(IToolchain toolchain)
200200
{
201201
if (toolchain is CoreRtToolchain) // the fix has not yet been backported to CoreRT
202202
return;
203+
if (toolchain.IsInProcess) // #1542 Tiered JIT compilations caught in the background
204+
return;
203205

204206
long objectAllocationOverhead = IntPtr.Size * 2; // pointer to method table + object header word
205207
long arraySizeOverhead = IntPtr.Size; // array length

0 commit comments

Comments
 (0)