< prev index next >

src/share/vm/gc/g1/g1CollectorPolicy.hpp

Print this page

        

*** 42,97 **** class HeapRegion; class CollectionSetChooser; class G1IHOPControl; - // TraceYoungGenTime collects data on _both_ young and mixed evacuation pauses - // (the latter may contain non-young regions - i.e. regions that are - // technically in old) while TraceOldGenTime collects data about full GCs. - class TraceYoungGenTimeData : public CHeapObj<mtGC> { - private: - unsigned _young_pause_num; - unsigned _mixed_pause_num; - - NumberSeq _all_stop_world_times_ms; - NumberSeq _all_yield_times_ms; - - NumberSeq _total; - NumberSeq _other; - NumberSeq _root_region_scan_wait; - NumberSeq _parallel; - NumberSeq _ext_root_scan; - NumberSeq _satb_filtering; - NumberSeq _update_rs; - NumberSeq _scan_rs; - NumberSeq _obj_copy; - NumberSeq _termination; - NumberSeq _parallel_other; - NumberSeq _clear_ct; - - void print_summary(const char* str, const NumberSeq* seq) const; - void print_summary_sd(const char* str, const NumberSeq* seq) const; - - public: - TraceYoungGenTimeData() : _young_pause_num(0), _mixed_pause_num(0) {}; - void record_start_collection(double time_to_stop_the_world_ms); - void record_yield_time(double yield_time_ms); - void record_end_collection(double pause_time_ms, G1GCPhaseTimes* phase_times); - void increment_young_collection_count(); - void increment_mixed_collection_count(); - void print() const; - }; - - class TraceOldGenTimeData : public CHeapObj<mtGC> { - private: - NumberSeq _all_full_gc_times; - - public: - void record_full_collection(double full_gc_time_ms); - void print() const; - }; - // There are three command line options related to the young gen size: // NewSize, MaxNewSize and NewRatio (There is also -Xmn, but that is // just a short form for NewSize==MaxNewSize). G1 will use its internal // heuristics to calculate the actual young gen size, so these options // basically only limit the range within which G1 can pick a young gen --- 42,51 ----
*** 179,195 **** G1Predictions _predictor; double get_new_prediction(TruncatedSeq const* seq) const; size_t get_new_size_prediction(TruncatedSeq const* seq) const; - // either equal to the number of parallel threads, if ParallelGCThreads - // has been set, or 1 otherwise - int _parallel_gc_threads; - - // The number of GC threads currently active. - uintx _no_of_gc_threads; - G1MMUTracker* _mmu_tracker; void initialize_alignments(); void initialize_flags(); --- 133,142 ----
*** 206,220 **** // Ratio check data for determining if heap growth is necessary. uint _ratio_over_threshold_count; double _ratio_over_threshold_sum; uint _pauses_since_start; - TraceYoungGenTimeData _trace_young_gen_time_data; - TraceOldGenTimeData _trace_old_gen_time_data; - - double _stop_world_start; - uint _young_list_target_length; uint _young_list_fixed_length; // The max number of regions we can extend the eden by while the GC // locker is active. This should be >= _young_list_target_length; --- 153,162 ----
*** 284,296 **** void adjust_concurrent_refinement(double update_rs_time, double update_rs_processed_buffers, double goal_ms); - uintx no_of_gc_threads() { return _no_of_gc_threads; } - void set_no_of_gc_threads(uintx v) { _no_of_gc_threads = v; } - double _pause_time_target_ms; size_t _pending_cards; // The amount of allocated bytes in old gen during the last mutator and the following --- 226,235 ----
*** 654,666 **** void record_concurrent_mark_cleanup_end(); void record_concurrent_mark_cleanup_completed(); virtual void print_phases(); - void record_stop_world_start(); - void record_concurrent_pause(); - // Record how much space we copied during a GC. This is typically // called when a GC alloc region is being retired. void record_bytes_copied_during_gc(size_t bytes) { _bytes_copied_during_gc += bytes; } --- 593,602 ----
*** 766,778 **** virtual size_t expansion_amount(); // Clear ratio tracking data used by expansion_amount(). void clear_ratio_check_data(); - // Print tracing information. - void print_tracing_info() const; - // Print stats on young survival ratio void print_yg_surv_rate_info() const; void finished_recalculating_age_indexes(bool is_survivors) { if (is_survivors) { --- 702,711 ----
< prev index next >