test/hotspot/jtreg/serviceability/sa/TestJmapCore.java
changeset 53817 784537ff9c4e
parent 52810 a2500cf11ee5
child 58127 41082cd965cc
child 58678 9cf78a70fa4f
equal deleted inserted replaced
53816:f3e0c8ca50d9 53817:784537ff9c4e
   136         System.err.println(out.getStderr());
   136         System.err.println(out.getStderr());
   137 
   137 
   138         if (dumpFile.exists() && dumpFile.isFile()) {
   138         if (dumpFile.exists() && dumpFile.isFile()) {
   139             HprofParser.parse(dumpFile);
   139             HprofParser.parse(dumpFile);
   140         } else {
   140         } else {
   141             boolean ZGCUsed = false;
   141           throw new RuntimeException(
   142 
   142             "Could not find dump file " + dumpFile.getAbsolutePath());
   143             for (String opt: Utils.getFilteredTestJavaOpts()) {
       
   144                 if (opt.contains("+UseZGC")) {
       
   145                     ZGCUsed = true;
       
   146                     break;
       
   147                 }
       
   148             }
       
   149 
       
   150             if (!ZGCUsed) {
       
   151                 throw new RuntimeException(
       
   152                     "Could not find dump file " + dumpFile.getAbsolutePath());
       
   153             }
       
   154         }
   143         }
   155 
   144 
   156         System.out.println("PASSED");
   145         System.out.println("PASSED");
   157     }
   146     }
   158 }
   147 }