Skip to content

Commit 316b783

Browse files
committed
8321276: runtime/cds/appcds/dynamicArchive/DynamicSharedSymbols.java failed with "'17 2: jdk/test/lib/apps ' missing from stdout/stderr"
Reviewed-by: dcubed
1 parent 65be5e0 commit 316b783

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/DynamicSharedSymbols.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ private static void doTest(String topArchiveName) throws Exception {
9090
ProcessBuilder pb = new ProcessBuilder();
9191
pb.command(new String[] {JDKToolFinder.getJDKTool("jcmd"), Long.toString(pid), "VM.symboltable", "-verbose"});
9292
OutputAnalyzer output = CDSTestUtils.executeAndLog(pb, "jcmd-symboltable");
93-
output.shouldContain("17 2: jdk/test/lib/apps\n");
93+
output.shouldContain("17 3: jdk/test/lib/apps\n"); // 3 because a TempSymbol will be found in the TempSymbolCleanupDelayer queue.
94+
// Note: we might want to drain the queue before CDS dumps but this is correct for now, unless the queue length changes.
9495
output.shouldContain("Dynamic shared symbols:\n");
9596
output.shouldContain("5 65535: Hello\n");
9697

0 commit comments

Comments
 (0)