Duplicate :
|
|
Relates :
|
|
Relates :
|
JDK-8007074 fixes crashes due to incorrect alignment with G1HeapRegionSize > os::large_page_size() and UseSHM (originally tracked by JDK-8016666) has been enabled, and if allocation of SHM/huge pages has actually been successful. With JDK-8007074, instead of crashing, if the memory area allocated returned by SHM functions is not aligned with G1HeapRegionSize (or actually the requested alignment), the VM falls back to use small pages. This kind of fallback is different to the fallback to use small pages when there are no (or not enough) large pages available at all. See os::reserve_memory_special_shm() for details. This may represent a performance issue. Improve that by e.g. manual alignment or additional allocation of small pages at the start and end to align the heap.
|