RFR: 8350982: -server|-client causes fatal exception on static JDK [v3]
Jiangli Zhou
jiangli at openjdk.org
Tue Mar 11 15:28:25 UTC 2025
> Please review the `Arguments::parse_each_vm_init_arg` change to ignore`-server|-client` options, which avoids unrecognized option error on static JDK.
>
> On regular JDK, '-server|-client' options are processed/removed from command-line arguments by `CheckJvmType` during `CreateExecutionEnvironment`. That happens before `Arguments::parse_each_vm_init_arg` is called. With jvm.cfg setting, only server vm is known and client is ignored. So specifying '-server' and '-client' in command-line is really a no-op.
>
> On static JDK, the VM is statically linked with the launcher, and `CreateExecutionEnvironment` & `CheckJvmType` are not called. As the result, `Arguments::parse_each_vm_init_arg` could see `-server|-client` when running on static JDK, if the options are specified in the command line.
Jiangli Zhou has updated the pull request incrementally with one additional commit since the last revision:
Remove @bug and update @summary.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/23881/files
- new: https://git.openjdk.org/jdk/pull/23881/files/3189513d..3d7331f2
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=23881&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=23881&range=01-02
Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/23881.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23881/head:pull/23881
PR: https://git.openjdk.org/jdk/pull/23881
More information about the hotspot-compiler-dev
mailing list