< prev index next >

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

Print this page




 655 
 656   void init();
 657 
 658   // Create jstat counters for the policy.
 659   virtual void initialize_gc_policy_counters();
 660 
 661   virtual HeapWord* mem_allocate_work(size_t size,
 662                                       bool is_tlab,
 663                                       bool* gc_overhead_limit_was_exceeded);
 664 
 665   // This method controls how a collector handles one or more
 666   // of its generations being fully allocated.
 667   virtual HeapWord* satisfy_failed_allocation(size_t size,
 668                                               bool is_tlab);
 669 
 670   BarrierSet::Name barrier_set_name() { return BarrierSet::G1SATBCTLogging; }
 671 
 672   bool need_to_start_conc_mark(const char* source, size_t alloc_word_size = 0);
 673 
 674   // Record the start and end of an evacuation pause.
 675   void record_collection_pause_start(double start_time_sec);
 676   void record_collection_pause_end(double pause_time_ms, EvacuationInfo& evacuation_info);
 677 
 678   // Record the start and end of a full collection.
 679   void record_full_collection_start();
 680   void record_full_collection_end();
 681 
 682   // Must currently be called while the world is stopped.
 683   void record_concurrent_mark_init_end(double mark_init_elapsed_time_ms);
 684 
 685   // Record start and end of remark.
 686   void record_concurrent_mark_remark_start();
 687   void record_concurrent_mark_remark_end();
 688 
 689   // Record start, end, and completion of cleanup.
 690   void record_concurrent_mark_cleanup_start();
 691   void record_concurrent_mark_cleanup_end(int no_of_gc_threads);
 692   void record_concurrent_mark_cleanup_completed();
 693 
 694   // Records the information about the heap size for reporting in
 695   // print_detailed_heap_transition


 903 
 904   void record_survivor_regions(uint regions,
 905                                HeapRegion* head,
 906                                HeapRegion* tail) {
 907     _recorded_survivor_regions = regions;
 908     _recorded_survivor_head    = head;
 909     _recorded_survivor_tail    = tail;
 910   }
 911 
 912   uint recorded_survivor_regions() {
 913     return _recorded_survivor_regions;
 914   }
 915 
 916   void record_thread_age_table(ageTable* age_table) {
 917     _survivors_age_table.merge_par(age_table);
 918   }
 919 
 920   void update_max_gc_locker_expansion();
 921 
 922   // Calculates survivor space parameters.
 923   void update_survivors_policy();
 924 
 925   virtual void post_heap_initialize();
 926 };
 927 
 928 // This should move to some place more general...
 929 
 930 // If we have "n" measurements, and we've kept track of their "sum" and the
 931 // "sum_of_squares" of the measurements, this returns the variance of the
 932 // sequence.
 933 inline double variance(int n, double sum_of_squares, double sum) {
 934   double n_d = (double)n;
 935   double avg = sum/n_d;
 936   return (sum_of_squares - 2.0 * avg * sum + n_d * avg * avg) / n_d;
 937 }
 938 
 939 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTORPOLICY_HPP


 655 
 656   void init();
 657 
 658   // Create jstat counters for the policy.
 659   virtual void initialize_gc_policy_counters();
 660 
 661   virtual HeapWord* mem_allocate_work(size_t size,
 662                                       bool is_tlab,
 663                                       bool* gc_overhead_limit_was_exceeded);
 664 
 665   // This method controls how a collector handles one or more
 666   // of its generations being fully allocated.
 667   virtual HeapWord* satisfy_failed_allocation(size_t size,
 668                                               bool is_tlab);
 669 
 670   BarrierSet::Name barrier_set_name() { return BarrierSet::G1SATBCTLogging; }
 671 
 672   bool need_to_start_conc_mark(const char* source, size_t alloc_word_size = 0);
 673 
 674   // Record the start and end of an evacuation pause.
 675   void record_collection_pause_start(double start_time_sec, GCTracer &tracer);
 676   void record_collection_pause_end(double pause_time_ms, EvacuationInfo& evacuation_info);
 677 
 678   // Record the start and end of a full collection.
 679   void record_full_collection_start();
 680   void record_full_collection_end();
 681 
 682   // Must currently be called while the world is stopped.
 683   void record_concurrent_mark_init_end(double mark_init_elapsed_time_ms);
 684 
 685   // Record start and end of remark.
 686   void record_concurrent_mark_remark_start();
 687   void record_concurrent_mark_remark_end();
 688 
 689   // Record start, end, and completion of cleanup.
 690   void record_concurrent_mark_cleanup_start();
 691   void record_concurrent_mark_cleanup_end(int no_of_gc_threads);
 692   void record_concurrent_mark_cleanup_completed();
 693 
 694   // Records the information about the heap size for reporting in
 695   // print_detailed_heap_transition


 903 
 904   void record_survivor_regions(uint regions,
 905                                HeapRegion* head,
 906                                HeapRegion* tail) {
 907     _recorded_survivor_regions = regions;
 908     _recorded_survivor_head    = head;
 909     _recorded_survivor_tail    = tail;
 910   }
 911 
 912   uint recorded_survivor_regions() {
 913     return _recorded_survivor_regions;
 914   }
 915 
 916   void record_thread_age_table(ageTable* age_table) {
 917     _survivors_age_table.merge_par(age_table);
 918   }
 919 
 920   void update_max_gc_locker_expansion();
 921 
 922   // Calculates survivor space parameters.
 923   void update_survivors_policy(GCTracer &tracer);
 924 
 925   virtual void post_heap_initialize();
 926 };
 927 
 928 // This should move to some place more general...
 929 
 930 // If we have "n" measurements, and we've kept track of their "sum" and the
 931 // "sum_of_squares" of the measurements, this returns the variance of the
 932 // sequence.
 933 inline double variance(int n, double sum_of_squares, double sum) {
 934   double n_d = (double)n;
 935   double avg = sum/n_d;
 936   return (sum_of_squares - 2.0 * avg * sum + n_d * avg * avg) / n_d;
 937 }
 938 
 939 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTORPOLICY_HPP
< prev index next >