RFR 9: 7021006: (process) Remove disabled clone-exec feature

Martin Buchholz martinrb at google.com
Fri Mar 27 21:00:01 UTC 2015


clone was never used in a released jdk.

I would leave the internal docs.  I left them in on purpose, because it was
not at all obvious why we chose not to use clone.

I'm especially fond of

- *   On Linux, one might think that vfork() would be implemented using
- *   the clone system call with flag CLONE_VFORK, but in fact vfork is
- *   a separate system call (which is a good sign, suggesting that
- *   vfork will continue to be supported at least on Linux).

Deleting the implementation using clone is a better idea; it's easy to
resurrect in the unlikely case someone will want to.


On Fri, Mar 27, 2015 at 1:50 PM, Roger Riggs <Roger.Riggs at oracle.com> wrote:

> At one time clone() was used on Unix to spawn processes but no more.
> Please review the cleanup of now dead code.
>
> Webrev:
>    http://cr.openjdk.java.net/~rriggs//webrev-clone-7021006
>
> Issue:
>   https://bugs.openjdk.java.net/browse/JDK-7021006
>
> Thanks, Roger
>
>



More information about the core-libs-dev mailing list