RFR: 8357179: Deprecate VFORK launch mechanism from Process implementation (linux) [v2]
Aleksey Shipilev
shade at openjdk.org
Wed May 21 08:28:57 UTC 2025
On Mon, 19 May 2025 16:59:06 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).
>> ...
>
> Thomas Stuefe has updated the pull request incrementally with one additional commit since the last revision:
>
> use string block
`VFORK` deprecation sneaked up on me. I filed [JDK-8357436](https://bugs.openjdk.org/browse/JDK-8357436) to amend `jspawnhelper` warning message.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25282#issuecomment-2897063928
More information about the core-libs-dev
mailing list