On Linux it is possible to use clone with CLONE_VM, but not CLONE_THREAD,
which is like fork() but much cheaper and avoids swap exhaustion due to momentary
overcommit of swap space. One has to be very careful in this case to not mutate global
variables such as environ, but it's worth it.
which is like fork() but much cheaper and avoids swap exhaustion due to momentary
overcommit of swap space. One has to be very careful in this case to not mutate global
variables such as environ, but it's worth it.
- relates to
-
JDK-7021006 (process) Remove disabled clone-exec feature
- Resolved
-
JDK-6853336 (process) disable or remove clone-exec feature (6850720)
- Resolved
-
JDK-5049299 (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
- Closed
-
JDK-7034935 Partial backport of Process.exec fixes from JDK7 to JDK6
- Closed