8178969: [TESTBUG] Wrong reporting of gc/g1/humongousObjects/TestHeapCounters test.
Reviewed-by: tschatzl, ayang
This commit is contained in:
parent
47951655ac
commit
4f2e4c7c24
@ -162,7 +162,7 @@ public class TestHeapCounters {
|
||||
if (gcCountNow == gcCountBefore) {
|
||||
// We should allocate at least allocation.expectedSize
|
||||
Asserts.assertGreaterThanOrEqual(usedMemoryAfter - usedMemoryBefore, expectedAllocationSize,
|
||||
"Counter of type " + memoryCounter.getClass().getSimpleName() +
|
||||
"Counter of type " + memoryCounter.toString() +
|
||||
" returned wrong allocation size");
|
||||
} else {
|
||||
System.out.println("GC happened during allocation so the check is skipped");
|
||||
@ -184,7 +184,7 @@ public class TestHeapCounters {
|
||||
// We should free at least allocation.expectedSize * ALLOCATION_SIZE_TOLERANCE_FACTOR
|
||||
Asserts.assertGreaterThanOrEqual(usedMemoryBefore - usedMemoryAfter,
|
||||
(long) (allocation.expectedSize * ALLOCATION_SIZE_TOLERANCE_FACTOR),
|
||||
"Counter of type " + memoryCounter.getClass().getSimpleName() + " returned wrong allocation size");
|
||||
"Counter of type " + memoryCounter.toString() + " returned wrong allocation size");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user