Skip to content

Commit

Permalink
8266056: runtime/stringtable/StringTableCleaningTest.java failed with…
Browse files Browse the repository at this point in the history
… "RuntimeException: Missing Callback in [10, 11]"
  • Loading branch information
pliden committed Apr 30, 2021
1 parent e9370a1 commit f98123c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion test/hotspot/jtreg/ProblemList-zgc.txt
Expand Up @@ -63,4 +63,3 @@ serviceability/sa/TestSysProps.java 8220624 generic-
serviceability/sa/sadebugd/DebugdConnectTest.java 8220624 generic-all
serviceability/sa/sadebugd/DisableRegistryTest.java 8220624 generic-all
vmTestbase/jit/escape/AdaptiveBlocking/AdaptiveBlocking001/AdaptiveBlocking001.java 8260303 windows-x64
runtime/stringtable/StringTableCleaningTest.java 8266056 linux-aarch64
Expand Up @@ -59,6 +59,8 @@ public static void main(String[] args) throws Exception {
subargs.add(Tester.class.getName());
subargs.addAll(Arrays.asList(args));
OutputAnalyzer output = ProcessTools.executeTestJvm(subargs);
output.outputTo(System.out);
output.errorTo(System.out);
output.shouldHaveExitValue(0);
checkOutput(output);
}
Expand All @@ -82,7 +84,8 @@ private static int fail(String msg) throws Exception {
private static final String g1Suffix = "Pause(?! Cleanup)";

// Suffix for ZGC.
private static final String zSuffix = "Garbage Collection";
private static final String zStartSuffix = "Garbage Collection (.*)$";
private static final String zEndSuffix = "Garbage Collection (.*) .*->.*$";

// Suffix for Shenandoah.
private static final String shenSuffix = "Concurrent weak roots";
Expand All @@ -93,7 +96,7 @@ private static String getGcStartString() {
} else if (GC.G1.isSelected()) {
return gcStartPrefix + g1Suffix;
} else if (GC.Z.isSelected()) {
return gcStartPrefix + zSuffix;
return gcStartPrefix + zStartSuffix;
} else if (GC.Shenandoah.isSelected()) {
return gcStartPrefix + shenSuffix;
} else {
Expand All @@ -107,7 +110,7 @@ private static String getGcEndString() {
} else if (GC.G1.isSelected()) {
return gcEndPrefix + g1Suffix;
} else if (GC.Z.isSelected()) {
return gcEndPrefix + zSuffix;
return gcEndPrefix + zEndSuffix;
} else if (GC.Shenandoah.isSelected()) {
return gcEndPrefix + shenSuffix;
} else {
Expand Down Expand Up @@ -183,7 +186,7 @@ private static int findCallback(List<String> lines, int gcStart)
fail("Two Starts: " + gcStart + ", " + i);
}
}
return fail("Missing Callback for Start: " + gcStart);
return -1;
}

// Search the lines for the first GC end log line in lines, starting
Expand Down

0 comments on commit f98123c

Please sign in to comment.