< prev index next >

src/hotspot/share/gc/g1/g1Policy.hpp

Print this page

        

*** 42,52 **** // * choice of collection set. // * when to collect. class HeapRegion; class G1CollectionSet; - class G1CollectionSetCandidates; class G1CollectionSetChooser; class G1IHOPControl; class G1Analytics; class G1SurvivorRegions; class G1YoungGenSizer; --- 42,51 ----
*** 343,367 **** } bool next_gc_should_be_mixed(const char* true_action_str, const char* false_action_str) const; ! // Calculate and return the number of initial and optional old gen regions from ! // the given collection set candidates and the remaining time. ! void calculate_old_collection_set_regions(G1CollectionSetCandidates* candidates, ! double time_remaining_ms, ! uint& num_initial_regions, ! uint& num_optional_regions); ! ! // Calculate the number of optional regions from the given collection set candidates, ! // the remaining time and the maximum number of these regions and return the number ! // of actually selected regions in num_optional_regions. ! void calculate_optional_collection_set_regions(G1CollectionSetCandidates* candidates, ! uint const max_optional_regions, ! double time_remaining_ms, ! uint& num_optional_regions); ! private: // Set the state to start a concurrent marking cycle and clear // _initiate_conc_mark_if_possible because it has now been // acted on. void initiate_conc_mark(); --- 342,352 ---- } bool next_gc_should_be_mixed(const char* true_action_str, const char* false_action_str) const; ! uint finalize_collection_set(double target_pause_time_ms, G1SurvivorRegions* survivor); private: // Set the state to start a concurrent marking cycle and clear // _initiate_conc_mark_if_possible because it has now been // acted on. void initiate_conc_mark();
*** 397,407 **** uint young_list_max_length() const { return _young_list_max_length; } ! bool use_adaptive_young_list_length() const; void transfer_survivors_to_cset(const G1SurvivorRegions* survivors); private: // --- 382,392 ---- uint young_list_max_length() const { return _young_list_max_length; } ! bool adaptive_young_list_length() const; void transfer_survivors_to_cset(const G1SurvivorRegions* survivors); private: //
*** 416,432 **** uint _max_survivor_regions; AgeTable _survivors_age_table; size_t desired_survivor_size(uint max_regions) const; ! // Fraction used when predicting how many optional regions to include in // the CSet. This fraction of the available time is used for optional regions, // the rest is used to add old regions to the normal CSet. double optional_prediction_fraction() { return 0.2; } - - public: // Fraction used when evacuating the optional regions. This fraction of the // remaining time is used to choose what regions to include in the evacuation. double optional_evacuation_fraction() { return 0.75; } uint tenuring_threshold() const { return _tenuring_threshold; } --- 401,415 ---- uint _max_survivor_regions; AgeTable _survivors_age_table; size_t desired_survivor_size(uint max_regions) const; ! public: // Fraction used when predicting how many optional regions to include in // the CSet. This fraction of the available time is used for optional regions, // the rest is used to add old regions to the normal CSet. double optional_prediction_fraction() { return 0.2; } // Fraction used when evacuating the optional regions. This fraction of the // remaining time is used to choose what regions to include in the evacuation. double optional_evacuation_fraction() { return 0.75; } uint tenuring_threshold() const { return _tenuring_threshold; }
< prev index next >