The test use 4 sec timeout to check progress:
if (!waitFor(() -> state.loaderRef().refersTo(null),
Utils.adjustTimeout(4_000L))) {
With -XX:CompileThresholdScaling=0.01 (or -Xcomp) compiler threads may consume
CPU resources preventing progression of an application in the expected time.
Add `@requires` to the test to avoid running it with these flags.
---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK
Interim AI Policy](https://openjdk.org/legal/ai).
-------------
Commit messages:
- 8394732: Test java/lang/LazyConstant/ThrowablesClassUnloading.java times out
with -XX:CompileThresholdScaling=0.01
Changes: https://git.openjdk.org/jdk/pull/33455/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33455&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8394732
Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/33455.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/33455/head:pull/33455
PR: https://git.openjdk.org/jdk/pull/33455