RFR: 8350982: -server|-client causes fatal exception on static JDK [v2]
Alan Bateman
alanb at openjdk.org
Thu Mar 6 07:46:56 UTC 2025
On Thu, 6 Mar 2025 07:03:53 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> test/hotspot/jtreg/runtime/CDSCompressedKPtrs/XShareAuto.java line 43:
>>
>>> 41: public static void main(String[] args) throws Exception {
>>> 42: ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(
>>> 43: "-XX:+UnlockDiagnosticVMOptions",
>>
>> This test was created specifically as a regression test because `-server` didn't work. I'm not sure it serves any purpose now. @iklam?
>
> I think the test still serves as a functional test: if an archive is specified, then -Xshare:auto is used by default.
Would it be better to use @requires !jdk.static for now so this test isn't selected when testing static builds? There is work further down the line to figure out a story for static builds + AOT as the ultimate goal is to run jlink and produce a single executable so there wouldn't be a separate AOT cache/archive on the file system. It's much further down the road, not clear that it's worth trying to test intermediate tests with -Xshare:auto at this time.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23881#discussion_r1982845616
More information about the hotspot-compiler-dev
mailing list