RFR 8210670 (S): Accept double-dash VM-name options at launch time
mark.reinhold at oracle.com
mark.reinhold at oracle.com
Wed Sep 12 21:16:00 UTC 2018
To make this trivial enhancement I first had to fix some broken tests,
so there are two issues and two webrevs here.
8210669: Some launcher tests assume a pre-JDK 9 run-time image layout
Two launcher tests, ExecutionEnvironment.java and Test7029048.java (in
test/jdk/tools/launcher), still assume the old image layout in which a
HotSpot shared library (libjava.so) is found in $JDK/lib/$ARCH/$VMTYPE
on Linux and Solaris. The intermediate $ARCH directory was removed in
JDK 9, as part of JEP 220 (Modular Run-Time Images) [1]. Since that
time these tests have been succeeding anyway, because they don’t fail
when the requested VM is not found.
The tests should be fixed to fail when the requested VM is not found,
and to look for VM shared libraries in the proper location.
JBS: https://bugs.openjdk.java.net/browse/JDK-8210669
Webrev: http://cr.openjdk.java.net/~mr/rev/8210669/
8210670: Accept double-dash VM-name options at launch time
Per JEP 293 (Guidelines for JDK Command-Line Tool Options) [2], enhance
the Java launcher so that `--server` is accepted to select the server VM,
in addition to `-server`, and likewise for any other VMs listed in the
$JDK/lib/jvm.cfg file.
JBS: https://bugs.openjdk.java.net/browse/JDK-8210670
Webrev: http://cr.openjdk.java.net/~mr/rev/8210670/
Passes tier1 tests; tier2-3 in progress.
Thanks,
- Mark
[1] http://openjdk.java.net/jeps/220
[2] http://openjdk.java.net/jeps/293
More information about the core-libs-dev
mailing list