< prev index next >
src/hotspot/share/gc/shenandoah/shenandoahHeuristics.cpp
Print this page
rev 55538 : 8226757: Shenandoah: Make Traversal a separate mode
*** 226,236 ****
bool ShenandoahHeuristics::should_start_update_refs() {
return _update_refs_early;
}
! bool ShenandoahHeuristics::should_start_normal_gc() const {
// Perform GC to cleanup metaspace
if (has_metaspace_oom()) {
// Some of vmTestbase/metaspace tests depend on following line to count GC cycles
log_info(gc)("Trigger: %s", GCCause::to_string(GCCause::_metadata_GC_threshold));
return true;
--- 226,236 ----
bool ShenandoahHeuristics::should_start_update_refs() {
return _update_refs_early;
}
! bool ShenandoahHeuristics::should_start_gc() const {
// Perform GC to cleanup metaspace
if (has_metaspace_oom()) {
// Some of vmTestbase/metaspace tests depend on following line to count GC cycles
log_info(gc)("Trigger: %s", GCCause::to_string(GCCause::_metadata_GC_threshold));
return true;
*** 243,260 ****
last_time_ms, ShenandoahGuaranteedGCInterval);
}
return periodic_gc;
}
- bool ShenandoahHeuristics::should_start_traversal_gc() {
- return false;
- }
-
- bool ShenandoahHeuristics::can_do_traversal_gc() {
- return false;
- }
-
bool ShenandoahHeuristics::should_degenerate_cycle() {
return _degenerated_cycles_in_a_row <= ShenandoahFullGCThreshold;
}
void ShenandoahHeuristics::record_success_concurrent() {
--- 243,252 ----
< prev index next >