class G1HeapSizingPolicy: public CHeapObj<mtGC> { // MinOverThresholdForGrowth must be less than the number of recorded // pause times in G1Analytics, representing the minimum number of pause // time ratios that exceed GCTimeRatio before a heap expansion will be triggered. conststatic uint MinOverThresholdForGrowth = 4;
const uint _num_prev_pauses_for_heuristics; // Ratio check data for determining if heap growth is necessary.
uint _ratio_over_threshold_count; double _ratio_over_threshold_sum;
uint _pauses_since_start;
// Scale "full" gc pause time threshold with heap size as we want to resize more // eagerly at small heap sizes. double scale_with_heap(double pause_time_threshold);
// If an expansion would be appropriate, because recent GC overhead had // exceeded the desired limit, return an amount to expand by.
size_t young_collection_expansion_amount();
// Returns the amount of bytes to resize the heap; if expand is set, the heap // should by expanded by that amount, shrunk otherwise.
size_t full_collection_resize_amount(bool& expand); // Clear ratio tracking data used by expansion_amount(). void clear_ratio_check_data();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.