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