test/hotspot/jtreg/serviceability/tmtools/jstat/utils/JstatGcCauseResults.java
changeset 49891 61b0342b5711
parent 49377 ecd91135d645
child 50190 6f548c41a4fc
equal deleted inserted replaced
49890:29b94ed63a09 49891:61b0342b5711
    72 
    72 
    73         float GCT = getFloatValue("GCT");
    73         float GCT = getFloatValue("GCT");
    74         assertThat(GCT >= 0, "Incorrect time value for GCT");
    74         assertThat(GCT >= 0, "Incorrect time value for GCT");
    75         assertThat(GCT >= YGCT, "GCT < YGCT (total garbage collection time < young generation garbage collection time)");
    75         assertThat(GCT >= YGCT, "GCT < YGCT (total garbage collection time < young generation garbage collection time)");
    76 
    76 
    77         int CGC = getIntValue("CGC");
    77         int CGC = 0;
    78         float CGCT = getFloatValue("CGCT");
    78         float CGCT = 0.0f;
    79         assertThat(CGCT >= 0, "Incorrect time value for CGCT");
    79         try {
       
    80             CGC = getIntValue("CGC");
       
    81         } catch (NumberFormatException e) {
       
    82             if (!e.getMessage().equals("Unparseable number: \"-\"")) {
       
    83                 throw e;
       
    84             }
       
    85         }
    80         if (CGC > 0) {
    86         if (CGC > 0) {
       
    87             CGCT = getFloatValue("CGCT");
       
    88             assertThat(CGCT >= 0, "Incorrect time value for CGCT");
    81             assertThat(CGCT > 0, "Number of concurrent GC events is " + CGC + ", but CGCT is 0");
    89             assertThat(CGCT > 0, "Number of concurrent GC events is " + CGC + ", but CGCT is 0");
    82         }
    90         }
    83 
    91 
    84         int FGC = getIntValue("FGC");
    92         int FGC = getIntValue("FGC");
    85         float FGCT = getFloatValue("FGCT");
    93         float FGCT = getFloatValue("FGCT");