< prev index next >
test/gc/metaspace/TestPerfCountersAndMemoryPools.java
Print this page
rev 10588 : 8151460: Metaspace counters can have inconsistent values
Reviewed-by:
rev 10589 : [mq]: meta-rev
*** 75,85 ****
// Must do a GC to update performance counters
System.gc();
assertEQ(getMinCapacity(perfNS), pool.getUsage().getInit(), "MinCapacity out of sync");
! // Adding a second GC due to metadata allocations caused caused by getting
// initial size from the pool. This is needed when running with -Xcomp.
System.gc();
assertEQ(getUsed(perfNS), pool.getUsage().getUsed(), "Used out of sync");
assertEQ(getCapacity(perfNS), pool.getUsage().getCommitted(), "Committed out of sync");
}
--- 75,85 ----
// Must do a GC to update performance counters
System.gc();
assertEQ(getMinCapacity(perfNS), pool.getUsage().getInit(), "MinCapacity out of sync");
! // Adding a second GC due to metadata allocations caused by getting the
// initial size from the pool. This is needed when running with -Xcomp.
System.gc();
assertEQ(getUsed(perfNS), pool.getUsage().getUsed(), "Used out of sync");
assertEQ(getCapacity(perfNS), pool.getUsage().getCommitted(), "Committed out of sync");
}
< prev index next >