Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public static void main(String[] args) {
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");
Expand All @@ -184,7 +184,7 @@ public static void main(String[] args) {
// 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");
});
}
}