JDK-7087583 : Hotspot fails to allocate heap with mmap(MAP_HUGETLB)
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: solaris_11,hs22
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux,solaris_11
  • CPU: generic,sparc
  • Submitted: 2011-09-06
  • Updated: 2011-12-12
  • Resolved: 2011-09-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 JDK 8 Other
7u2Fixed 8Fixed hs22Fixed
Description
Hotspot will fail allocating the heap on linux >= 2.6.32 if there're more than 1 large page present but not enough to cover all the heap.

Comments
EVALUATION See main CR
14-09-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/27702f012017
07-09-2011

SUGGESTED FIX The solution would be to try small pages if mmap(MAP_HUGETLB) fails.
06-09-2011