[11u]: RFR CSR backport: JDK-8220362: Add "POSIX_SPAWN" as valid value to jdk.lang.Process.launchMechanism on Linux

Thomas Stüfe thomas.stuefe at gmail.com
Wed Mar 20 08:37:52 UTC 2019

On Tue, Mar 19, 2019 at 5:10 PM Martin Buchholz <martinrb at google.com> wrote:

> I'm the one who introduced vfork for process spawning, and I support
> Thomas' plan to switch to posix_spawn.
> (although I have not seen a crash attributed to using vfork on Linux)

Thanks Martin. I think for a long time vfork was the best alternative.

I remember seeing one or two cases in the last five years which could have
been caused by vfork. In both cases, in a fork-heavy environment with many
short-lived processes, a broken script killed the wrong pid - a just
spawned child - and pid's father disappeared at the same time without a

Cheers, Thomas

More information about the core-libs-dev mailing list