< prev index next >
hotspot/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp
Print this page
rev 6911 : 8065305: Make it possible to extend the G1CollectorPolicy
Summary: Added a G1CollectorPolicyExt where it is possible to extend the class.
Reviewed-by: sjohanss, tschatzl
*** 24,33 ****
--- 24,34 ----
#ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTORPOLICY_HPP
#define SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTORPOLICY_HPP
#include "gc_implementation/g1/collectionSetChooser.hpp"
+ #include "gc_implementation/g1/g1Allocator.hpp"
#include "gc_implementation/g1/g1MMUTracker.hpp"
#include "memory/collectorPolicy.hpp"
// A G1CollectorPolicy makes policy decisions that determine the
// characteristics of the collector. Examples include:
*** 801,811 ****
// the initial-mark work and start a marking cycle.
void decide_on_conc_mark_initiation();
// If an expansion would be appropriate, because recent GC overhead had
// exceeded the desired limit, return an amount to expand by.
! size_t expansion_amount();
// Print tracing information.
void print_tracing_info() const;
// Print stats on young survival ratio
--- 802,812 ----
// the initial-mark work and start a marking cycle.
void decide_on_conc_mark_initiation();
// If an expansion would be appropriate, because recent GC overhead had
// exceeded the desired limit, return an amount to expand by.
! virtual size_t expansion_amount();
// Print tracing information.
void print_tracing_info() const;
// Print stats on young survival ratio
*** 820,840 ****
// do that for any other surv rate groups
}
size_t young_list_target_length() const { return _young_list_target_length; }
! bool is_young_list_full() {
! uint young_list_length = _g1->young_list()->length();
! uint young_list_target_length = _young_list_target_length;
! return young_list_length >= young_list_target_length;
! }
! bool can_expand_young_list() {
! uint young_list_length = _g1->young_list()->length();
! uint young_list_max_length = _young_list_max_length;
! return young_list_length < young_list_max_length;
! }
uint young_list_max_length() {
return _young_list_max_length;
}
--- 821,833 ----
// do that for any other surv rate groups
}
size_t young_list_target_length() const { return _young_list_target_length; }
! bool is_young_list_full();
! bool can_expand_young_list();
uint young_list_max_length() {
return _young_list_max_length;
}
< prev index next >