< prev index next >
src/hotspot/share/gc/parallel/psParallelCompact.cpp
Print this page
rev 52628 : changes for full GC
*** 1993,2003 ****
MutableSpace* const eden_space = young_gen->eden_space();
assert(!eden_space->is_empty(), "eden must be non-empty");
assert(young_gen->virtual_space()->alignment() ==
old_gen->virtual_space()->alignment(), "alignments do not match");
! if (!(UseAdaptiveSizePolicy && UseAdaptiveGCBoundary)) {
return false;
}
// Both generations must be completely committed.
if (young_gen->virtual_space()->uncommitted_size() != 0) {
--- 1993,2006 ----
MutableSpace* const eden_space = young_gen->eden_space();
assert(!eden_space->is_empty(), "eden must be non-empty");
assert(young_gen->virtual_space()->alignment() ==
old_gen->virtual_space()->alignment(), "alignments do not match");
! // When heap is backed by heterogenous memory, we cannot absorb data from eden into old.
! // Because old is allocated on different memory (example, nv-dimm) than young.
! if (!(UseAdaptiveSizePolicy && UseAdaptiveGCBoundary) ||
! ParallelScavengeHeap::heap()->is_hetero_heap()) {
return false;
}
// Both generations must be completely committed.
if (young_gen->virtual_space()->uncommitted_size() != 0) {
< prev index next >