< prev index next >

test/hotspot/jtreg/serviceability/tmtools/jstat/utils/JstatGcCauseResults.java

Print this page

        

*** 72,85 **** float GCT = getFloatValue("GCT"); assertThat(GCT >= 0, "Incorrect time value for GCT"); assertThat(GCT >= YGCT, "GCT < YGCT (total garbage collection time < young generation garbage collection time)"); ! int CGC = getIntValue("CGC"); ! float CGCT = getFloatValue("CGCT"); ! assertThat(CGCT >= 0, "Incorrect time value for CGCT"); if (CGC > 0) { assertThat(CGCT > 0, "Number of concurrent GC events is " + CGC + ", but CGCT is 0"); } int FGC = getIntValue("FGC"); float FGCT = getFloatValue("FGCT"); --- 72,93 ---- float GCT = getFloatValue("GCT"); assertThat(GCT >= 0, "Incorrect time value for GCT"); assertThat(GCT >= YGCT, "GCT < YGCT (total garbage collection time < young generation garbage collection time)"); ! int CGC = 0; ! float CGCT = 0.0f; ! try { ! CGC = getIntValue("CGC"); ! } catch (NumberFormatException e) { ! if (!e.getMessage().equals("Unparseable number: \"-\"")) { ! throw e; ! } ! } if (CGC > 0) { + CGCT = getFloatValue("CGCT"); + assertThat(CGCT >= 0, "Incorrect time value for CGCT"); assertThat(CGCT > 0, "Number of concurrent GC events is " + CGC + ", but CGCT is 0"); } int FGC = getIntValue("FGC"); float FGCT = getFloatValue("FGCT");
< prev index next >