JDK-8214454 : Release Note: POSIX_SPAWN Option on Linux
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 11.0.10-oracle,12
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2018-11-28
  • Updated: 2020-09-02
  • Resolved: 2018-12-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 12
11.0.10-oracleResolved 12Resolved
Related Reports
Relates :  
Description
As an additional way to launch processes on Linux, the `jdk.lang.Process.launchMechanism` property can be set to `POSIX_SPAWN`. This option has been available for a long time on other *nix platforms. The default launch mechanism (`VFORK`) on Linux is unchanged, so this additional option does not affect existing installations.

`POSIX_SPAWN` mitigates rare pathological cases when spawning child processes, but it has not yet been excessively tested. Prudence is advised when using `POSIX_SPAWN` in productive installations.
Comments
The case is not specified. (There is no spec, only release notes). It is only understood by the implementation. The values are defined using an enum as upper case. And the implementation forces the input to upper case before doing the lookup.
06-12-2018

@David: Both are valid. Case is ignored.
06-12-2018

Is the value POSIX_SPAWN or posix_spawn? ditto for VFORK versus vfork.
05-12-2018

This probably needs further explanation as to the difference in the mechanisms and why you would want to use one or the other.
30-11-2018