< prev index next >
test/serviceability/tmtools/jstat/GcNewTest.java
Print this page
rev 12309 : Rev 01
*** 44,54 ****
// Run once and get the results asserting that they are reasonable
JstatGcNewResults measurement1 = jstatGcTool.measure();
measurement1.assertConsistency();
! GcProvoker gcProvoker = GcProvoker.createGcProvoker();
// Provoke GC and run the tool again
gcProvoker.provokeGc();
JstatGcNewResults measurement2 = jstatGcTool.measure();
measurement2.assertConsistency();
--- 44,54 ----
// Run once and get the results asserting that they are reasonable
JstatGcNewResults measurement1 = jstatGcTool.measure();
measurement1.assertConsistency();
! GcProvoker gcProvoker = new GcProvoker();
// Provoke GC and run the tool again
gcProvoker.provokeGc();
JstatGcNewResults measurement2 = jstatGcTool.measure();
measurement2.assertConsistency();
< prev index next >