8211424: Allocation of old generation of java heap on alternate memory devices - Parallel GC

8202286: Allocation of old generation of Java heap on alternate memory devices

Enable an experimental feature in HotSpot JVM to allocate old generation of Parallel GC on an alternative memory device, such as NV-DIMMs.

Reviewed-by: sangheki, sjohanss
This commit is contained in:
Kishor Kharbas 2018-12-21 08:23:55 -08:00 committed by Sangheon Kim
parent d580e2eed2
commit 28f71c2c72
21 changed files with 785 additions and 47 deletions

View file

@ -1995,7 +1995,10 @@ bool PSParallelCompact::absorb_live_data_from_eden(PSAdaptiveSizePolicy* size_po
assert(young_gen->virtual_space()->alignment() ==
old_gen->virtual_space()->alignment(), "alignments do not match");
if (!(UseAdaptiveSizePolicy && UseAdaptiveGCBoundary)) {
// We also return false when it's a heterogenous heap because old generation cannot absorb data from eden
// when it is allocated on different memory (example, nv-dimm) than young.
if (!(UseAdaptiveSizePolicy && UseAdaptiveGCBoundary) ||
ParallelScavengeHeap::heap()->ps_collector_policy()->is_hetero_heap()) {
return false;
}