Integrated: 8357179: Deprecate VFORK launch mechanism from Process implementation (linux)

Thomas Stuefe stuefe at openjdk.org
Wed May 21 04:42:01 UTC 2025


On Sat, 17 May 2025 06:49:37 GMT, Thomas Stuefe <stuefe at 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 at 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).
> ...

This pull request has now been integrated.

Changeset: 74fc4e4e
Author:    Thomas Stuefe <stuefe at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/74fc4e4ee7f2e44d9c8339ff6665d4171d298f8f
Stats:     16 lines in 1 file changed: 12 ins; 2 del; 2 mod

8357179: Deprecate VFORK launch mechanism from Process implementation (linux)

Reviewed-by: rriggs

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

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


More information about the core-libs-dev mailing list