< prev index next >
src/share/vm/gc/shared/genCollectedHeap.cpp
Print this page
*** 302,314 ****
bool GenCollectedHeap::must_clear_all_soft_refs() {
return _gc_cause == GCCause::_last_ditch_collection;
}
bool GenCollectedHeap::should_do_concurrent_full_gc(GCCause::Cause cause) {
! return UseConcMarkSweepGC &&
! ((cause == GCCause::_gc_locker && GCLockerInvokesConcurrent) ||
! (cause == GCCause::_java_lang_system_gc && ExplicitGCInvokesConcurrent));
}
void GenCollectedHeap::collect_generation(Generation* gen, bool full, size_t size,
bool is_tlab, bool run_verification, bool clear_soft_refs,
bool restore_marks_for_biased_locking) {
--- 302,321 ----
bool GenCollectedHeap::must_clear_all_soft_refs() {
return _gc_cause == GCCause::_last_ditch_collection;
}
bool GenCollectedHeap::should_do_concurrent_full_gc(GCCause::Cause cause) {
! if (!UseConcMarkSweepGC) {
! return false;
! }
!
! switch (cause) {
! case GCCause::_gc_locker: return GCLockerInvokesConcurrent;
! case GCCause::_java_lang_system_gc:
! case GCCause::_dcmd_gc_run: return ExplicitGCInvokesConcurrent;
! default: return false;
! }
}
void GenCollectedHeap::collect_generation(Generation* gen, bool full, size_t size,
bool is_tlab, bool run_verification, bool clear_soft_refs,
bool restore_marks_for_biased_locking) {
< prev index next >