Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8212828

(process) Provide a way for Runtime.exec to use posix_spawn on linux

    Details

    • Subcomponent:
    • Resolved In Build:
      b19

      Description

      Currently, on Linux, Runtime.exec() uses fork() or vfork(), with vfork() being the default. This is controlled by -Djdk.lang.Process.launchMechanism, with allowed values of "FORK" and "VFORK" on linux.

      Enable the use of posix_spawn() on Linux as it is used already on Solaris, BSD and AIX. But do not change the default.

      Purpose of this patch is to be able to test posix_spawn() on Linux, with the expressed wish to change the default to posix_spawn() later.

      See also discussion thread: http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-October/056122.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stuefe Thomas Stuefe
                Reporter:
                stuefe Thomas Stuefe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: