RFR: 8258772: Some runtime/cds tests fail with +LogCompilation or +StressX

Roberto Castañeda Lozano rcastanedalo at openjdk.java.net
Tue Dec 22 09:40:05 UTC 2020


On Tue, 22 Dec 2020 09:20:57 GMT, Roberto Castañeda Lozano <rcastanedalo at openjdk.org> wrote:

>> Emit warning about TraceDependencies results in `ClassHierarchyWalker::count_find_witness_calls()` only if `TraceDependencies` is actually enabled. Use standard `warning()` function instead of ad hoc printing. Remove warning about using `Stress(LCM|GCM|IGVN)` without `LogCompilation` in `Compile::Compile()`, and add the information to the description of the `StressSeed` option instead. These changes prevent false test failures when using `LogCompilation` or `Stress(LCM|GCM|IGVN)`.
>
> Emit warning about TraceDependencies results in
> ClassHierarchyWalker::count_find_witness_calls() only if TraceDependencies is
> actually enabled. Use standard warning() function instead of ad hoc printing.
> Remove warning about using Stress(LCM|GCM|IGVN) without LogCompilation in
> Compile::Compile(), and add the information to the description of the StressSeed
> option instead. These changes prevent false test failures when using
> LogCompilation or Stress(LCM|GCM|IGVN).

Tested on hs-tier1-3 with the following configurations:
- no additional options, {windows-x64, linux-x64, linux-aarch64, macosx-x64}, {release, debug};
- `+LogCompilation`, linux-x64, debug; and
- `+StressIGVN`, linux-x64, debug.

Four failures were found using `+LogCompilation`. The failures are independent of these proposed changes (unrelated to warning emission), and have been reported separately (https://bugs.openjdk.java.net/browse/JDK-8258814).

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

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


More information about the hotspot-compiler-dev mailing list