RFR: 8299226: compiler/profiling/TestTypeProfiling.java: make it not throw if C2 is not enabled.

Vladimir Kozlov kvn at openjdk.org
Fri Mar 10 21:20:39 UTC 2023


On Fri, 10 Mar 2023 19:31:45 GMT, Ilya Korennoy <duke at openjdk.org> wrote:

> Changing RuntimeException to SkippedException when TieredStopAtLevel < 4.
> 
> The main part of this problem was done in [JDK-8226795](https://bugs.openjdk.org/browse/JDK-8226795) but for some reason, the exception was not changed.

Did you tried to reproduce the issue described in the bug?

JDK-8226795 fix added jtreg's commands `@requires` which will not allow to run without C2. I tried:

Test results: no tests selected

Also `Platform` and `TIERED_*` checks in `main()` methods are useless and can be removed after JDK-8226795 changes.

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

Changes requested by kvn (Reviewer).

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


More information about the hotspot-compiler-dev mailing list