RFR: 8339701: Test TestPinCaseWithCFLH.java fails with -Xcomp
Alan Bateman
alanb at openjdk.org
Mon Sep 9 06:13:05 UTC 2024
On Sun, 8 Sep 2024 15:30:21 GMT, SendaoYan <syan at openjdk.org> wrote:
> Hi all,
> The newly added testcase `serviceability/jvmti/vthread/TestPinCaseWithCFLH/TestPinCaseWithCFLH.java` fails with `-Xcomp` jvm option. The jvm option `-Xcomp` will make `BackgroundCompilation` false. In this test, disable `BackgroundCompilation` will make `instrumentation` in `premain` throw `java.util.MissingResourceException` in some test environments.
> So, I think it's necessary add `-XX:+BackgroundCompilation` option for this test to make this test more robustness, to make this test run passed with `-Xcomp` option.
> Test-fix only, no risk.
Yes, I think more information needed as the JBS issue suggests the ClassCircularityError happens before main. If there was something fundamental here then I would expect every JDK tests for Java Agents to fail with -Xcomp. In addition to the locale, can you confirm that you are testing an images build and not an exploded build?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20906#issuecomment-2337208151
More information about the serviceability-dev
mailing list