JDK-7042285 : G1: native memory leak during humongous object allocation
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs20
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-05-05
  • Updated: 2013-09-18
  • Resolved: 2011-09-30
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 JDK 8 Other
7u2Fixed 8Fixed hs22Fixed
Related Reports
Relates :  
There's a native memory leak in G1 during excessive humongous object allocation.

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/c3f1170908be

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/c3f1170908be

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/c3f1170908be

SUGGESTED FIX I went with fix (a) (see Comment #5).

WORK AROUND The test causes the heap to grow and shrink very aggressively and this is what uncovers the memory leak. The workaround is to use a fixed heap size which will eliminate the memory leak.

EVALUATION See Comment #5.