-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8357089: Remove VFORK launch mechanism from Process implementation (linux) #25260
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
8357089: Remove VFORK launch mechanism from Process implementation (linux) #25260
Conversation
👋 Welcome back stuefe! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
I will delay this push for early JDK 26; hence back to draft state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delaying the removal to jdk 26 is good.
But there should be a warning/deprecation in JDK 25.
// On Posix platforms, chose a launch mechanism (should be value of a LaunchMechanism enum) | ||
if (OperatingSystem.current() != OperatingSystem.WINDOWS) { | ||
String v = s.toUpperCase(Locale.ROOT); | ||
if (v.equals("VFORK")) { | ||
System.err.println("The VFORK launch mechanism has been removed; please either remove the " + | ||
"jdk.lang.Process.launchMechanism property (preferred) or use " + | ||
"-Djdk.lang.Process.launchMechanism=FORK instead."); | ||
} | ||
return LaunchMechanism.valueOf(v); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to check for Windows, Windows has a completely separate implementation. Its in the switch to make switch exhaustive.
The first change should just be deprecation, not removal, so output the message but continue.
The message should have some prefix that stands out ALL-CAPS or something big and ugly.
Not for JDK 25
See the companion CSR (https://bugs.openjdk.org/browse/JDK-8357090) for the ratio behind this removal.
Patch
-Djdk.lang.Process.launchMechanism=vfork
.Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25260/head:pull/25260
$ git checkout pull/25260
Update a local copy of the PR:
$ git checkout pull/25260
$ git pull https://git.openjdk.org/jdk.git pull/25260/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25260
View PR using the GUI difftool:
$ git pr show -t 25260
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25260.diff
Using Webrev
Link to Webrev Comment