review(XS): 7087583: Hotspot fails to allocate heap with mmap(MAP_HUGETLB)

Y. S. Ramakrishna y.s.ramakrishna at
Tue Sep 6 22:49:20 UTC 2011

Looks good to me.

-- ramki

On 09/06/11 14:38, Igor Veresov wrote:
> 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. The solution is to try small pages if mmap(MAP_HUGETLB) fails and also apply madvise(MADV_HUGETLB) in case some pages are freed by the time we touch this space. 
> Webrev:
> Thanks!
> igor

More information about the hotspot-gc-dev mailing list