JDK-6868160 : (process) Use vfork , not fork, on Linux to avoid swap exhaustion
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: unknown
  • Submitted: 2009-08-04
  • Updated: 2010-04-03
  • Resolved: 2009-08-14
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 7
7 b70Fixed
Related Reports
Relates :  
Description
The fix for 6850720: (process) Use clone(CLONE_VM), not fork, on Linux to avoid swap exhaustion didn't quite work on linux-x86_64, perhaps because of bugs in glibc.

We changed the default back to fork() in
6853336: (process) disable or remove clone-exec feature (6850720)

vfork appears to be more reliable.

Comments
EVALUATION changeset for this change: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/55186701bdbc
07-08-2009