Integrated: 8171508: Remove -Dsun.java.launcher.is_altjvm option

Calvin Cheung ccheung at openjdk.org
Thu Apr 10 19:59:41 UTC 2025


On Sat, 29 Mar 2025 04:28:49 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> The `-Dsun.java.launcher.is_altjvm` option is only used in the gtest launcher and has no relationship with the similarly named `-XXaltjvm` option. The gtest launcher also sets the `-XX:+ExecutingUnitTests` option. This RFE involves removing the `-Dsun.java.launcher.is_altjvm` option, capturing the `-XX:+ExecutingUnitTests` option in Arguments::process_sun_java_launcher_properties() so that the os::jvm_path() can check if the option is set before using JAVA_HOME setting.
> 
> Passed tiers 1 - 3 testing.

This pull request has now been integrated.

Changeset: 7680f70a
Author:    Calvin Cheung <ccheung at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/7680f70ad647da741dd6cd9603a53f7923f95667
Stats:     224 lines in 7 files changed: 29 ins; 114 del; 81 mod

8171508: Remove -Dsun.java.launcher.is_altjvm option

Reviewed-by: dholmes, stuefe

-------------

PR: https://git.openjdk.org/jdk/pull/24310


More information about the hotspot-runtime-dev mailing list