--- old/test/hotspot/jtreg/serviceability/sa/ClhsdbCDSCore.java 2018-10-09 10:10:54.225103556 +0530 +++ new/test/hotspot/jtreg/serviceability/sa/ClhsdbCDSCore.java 2018-10-09 10:10:53.957103556 +0530 @@ -23,8 +23,8 @@ /** * @test - * @bug 8174994 - * @summary Test the clhsdb commands 'printmdo', 'printall' on a CDS enabled corefile. + * @bug 8174994 8200613 + * @summary Test the clhsdb commands 'printmdo', 'printall', 'jstack' on a CDS enabled corefile. * @requires vm.cds * @requires vm.hasSA * @requires os.family != "windows" @@ -79,7 +79,6 @@ CDSTestUtils.createArchiveAndCheck(opts); String[] jArgs = { - "-Xmx512m", "-XX:+UnlockDiagnosticVMOptions", "-XX:SharedArchiveFile=" + SHARED_ARCHIVE_NAME, "-XX:+CreateCoredumpOnCrash", @@ -156,7 +155,7 @@ throw new SkippedException("The CDS archive is not mapped"); } - cmds = List.of("printmdo -a", "printall"); + cmds = List.of("printmdo -a", "printall", "jstack -v"); Map> expStrMap = new HashMap<>(); Map> unExpStrMap = new HashMap<>(); @@ -182,6 +181,11 @@ "illegal code", "Failure occurred at bci", "No suitable match for type of address")); + expStrMap.put("jstack -v", List.of( + "Common-Cleaner", + "Method*")); + unExpStrMap.put("jstack -v", List.of( + "sun.jvm.hotspot.debugger.UnmappedAddressException")); test.runOnCore(TEST_CDS_CORE_FILE_NAME, cmds, expStrMap, unExpStrMap); } catch (SkippedException e) { throw e;