RFR: 8266056: runtime/stringtable/StringTableCleaningTest.java failed with "RuntimeException: Missing Callback in [10, 11]" [v2]

Per Liden pliden at openjdk.java.net
Fri Apr 30 13:08:15 UTC 2021


> This patch addresses two issues with the StringTableCleaningTest test.
> 
> 1) The test doesn't fully take into account that a concurrent GC might not complete (it can abort if the VM wants to terminate). findCallback() should return -1 if no callbacks are found, instead of failing the test.
> 
> 2) The regexp patterns used for ZGC needs to be more exact. The end pattern now also matches aborted GCs, which it shouldn't. This leads to "Garbage Collection (*) Aborted" being incorrectly matched as a GC end.
> 
> This patch also makes sure the output from the test VM ends up in the test log, otherwise it's impossible to tell what went wrong if this test fails in the future.
> 
> This patch also removes the test from the ProblemList.
> 
> Testing:
> * Passed Tier1-3.
> * Manual testing of StringTableCleaningTest with various GCs.

Per Liden has updated the pull request incrementally with one additional commit since the last revision:

  Review comments from David

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/3815/files
  - new: https://git.openjdk.java.net/jdk/pull/3815/files/f98123ce..d991bbc3

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3815&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3815&range=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3815.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3815/head:pull/3815

PR: https://git.openjdk.java.net/jdk/pull/3815



More information about the hotspot-gc-dev mailing list