src/share/vm/gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.hpp

Print this page




 419   int change_young_gen_for_maj_pauses() {
 420     return _change_young_gen_for_maj_pauses;
 421   }
 422   void set_change_young_gen_for_maj_pauses(int v) {
 423     _change_young_gen_for_maj_pauses = v;
 424   }
 425 
 426   void clear_internal_time_intervals();
 427 
 428 
 429   // Either calculated_promo_size_in_bytes() or promo_size()
 430   // should be deleted.
 431   size_t promo_size() { return _promo_size; }
 432   void set_promo_size(size_t v) { _promo_size = v; }
 433 
 434   // Cost of GC for all types of collections.
 435   virtual double gc_cost() const;
 436 
 437   size_t generation_alignment() { return _generation_alignment; }
 438 
 439   virtual void compute_young_generation_free_space(size_t cur_eden,
 440                                                    size_t max_eden_size);
 441   // Calculates new survivor space size;  returns a new tenuring threshold
 442   // value. Stores new survivor size in _survivor_size.
 443   virtual uint compute_survivor_space_size_and_threshold(
 444                                                 bool   is_survivor_overflow,
 445                                                 uint   tenuring_threshold,
 446                                                 size_t survivor_limit);
 447 
 448   virtual void compute_tenured_generation_free_space(size_t cur_tenured_free,
 449                                            size_t max_tenured_available,
 450                                            size_t cur_eden);
 451 
 452   size_t eden_decrement_aligned_down(size_t cur_eden);
 453   size_t eden_increment_aligned_up(size_t cur_eden);
 454 
 455   size_t adjust_eden_for_pause_time(size_t cur_eden);
 456   size_t adjust_eden_for_throughput(size_t cur_eden);
 457   size_t adjust_eden_for_footprint(size_t cur_eden);
 458 
 459   size_t promo_decrement_aligned_down(size_t cur_promo);


 419   int change_young_gen_for_maj_pauses() {
 420     return _change_young_gen_for_maj_pauses;
 421   }
 422   void set_change_young_gen_for_maj_pauses(int v) {
 423     _change_young_gen_for_maj_pauses = v;
 424   }
 425 
 426   void clear_internal_time_intervals();
 427 
 428 
 429   // Either calculated_promo_size_in_bytes() or promo_size()
 430   // should be deleted.
 431   size_t promo_size() { return _promo_size; }
 432   void set_promo_size(size_t v) { _promo_size = v; }
 433 
 434   // Cost of GC for all types of collections.
 435   virtual double gc_cost() const;
 436 
 437   size_t generation_alignment() { return _generation_alignment; }
 438 
 439   virtual void compute_eden_space_size(size_t cur_eden,
 440                                                    size_t max_eden_size);
 441   // Calculates new survivor space size;  returns a new tenuring threshold
 442   // value. Stores new survivor size in _survivor_size.
 443   virtual uint compute_survivor_space_size_and_threshold(
 444                                                 bool   is_survivor_overflow,
 445                                                 uint   tenuring_threshold,
 446                                                 size_t survivor_limit);
 447 
 448   virtual void compute_tenured_generation_free_space(size_t cur_tenured_free,
 449                                            size_t max_tenured_available,
 450                                            size_t cur_eden);
 451 
 452   size_t eden_decrement_aligned_down(size_t cur_eden);
 453   size_t eden_increment_aligned_up(size_t cur_eden);
 454 
 455   size_t adjust_eden_for_pause_time(size_t cur_eden);
 456   size_t adjust_eden_for_throughput(size_t cur_eden);
 457   size_t adjust_eden_for_footprint(size_t cur_eden);
 458 
 459   size_t promo_decrement_aligned_down(size_t cur_promo);