On Sat, 17 May 2025 06:49:37 GMT, Thomas Stuefe <stu...@openjdk.org> wrote:
> For the ratio behind this please see the companion CSR: > https://bugs.openjdk.org/browse/JDK-8357180. > > We plan to deprecate this in JDK 25 and to remove it in JDK 26. > > This patch just writes a deprecation message to stderr: > > > 08:46:38 thomas@starfish java -Djdk.lang.Process.launchMechanism=VFORK > SimpleSpawn ls > VFORK MODE DEPRECATED > The VFORK launch mechanism has been deprecated for being dangerous. > It will be removed in a future java version. Either remove the > jdk.lang.Process.launchMechanism property (preferred) or use FORK mode > instead (-Djdk.lang.Process.launchMechanism=FORK). > ... src/java.base/unix/classes/java/lang/ProcessImpl.java line 111: > 109: "It will be removed in a > future java version. Either remove the\n" + > 110: > "jdk.lang.Process.launchMechanism property (preferred) or use FORK mode\n" + > 111: "instead > (-Djdk.lang.Process.launchMechanism=FORK)."); This is okay although I could imagine someone wanting to replace this with a text block. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/25282#discussion_r2096052329