RFR: 8292313: 2 runtime/cds/appcds tests fail after JDK-8284313

Ioi Lam iklam at openjdk.org
Mon Aug 15 23:50:11 UTC 2022


On Mon, 15 Aug 2022 22:42:17 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> The tests failed due to the presence of the -Xlog:cds flag. 
> 
> In the WrongTopClasspath.java test, it expects the following warning: 
> `[warning][cds] shared class paths mismatch (hint: enable -Xlog:class+path=info to diagnose the failure) `
> 
> with -Xlog:cds enabled, the log statement becomes: 
> `[info][cds] UseSharedSpaces: shared class paths mismatch (hint: enable -Xlog:class+path=info to diagnose the failure)` 
> 
> Since both tests are running in both Tiers 2 and 3 and the tests are not testing any of the VM flags settings in Tier4, I think we can simply add the following @requires to the tests: 
>     vm.flagless
> 
> This message going to different channels (warning vs log) issue will be addressed in [JDK-8292269](https://bugs.openjdk.org/browse/JDK-8292269).
> 
> Passed tier2 testing and tested with `-Xlog:cds` locally on linux-x64.

Maybe the tests should be fixed to check for only "shared class paths mismatch (hint: enable -Xlog:class+path=info to diagnose the failure)"? That way we don't need to put arbitrary limitations on the tests.

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

PR: https://git.openjdk.org/jdk/pull/9884


More information about the hotspot-runtime-dev mailing list