983 // update the remembered sets of the regions in the collection 984 // set in the event of an evacuation failure. 985 DirtyCardQueueSet& into_cset_dirty_card_queue_set() 986 { return _into_cset_dirty_card_queue_set; } 987 988 // Create a G1CollectedHeap with the specified policy. 989 // Must call the initialize method afterwards. 990 // May not return if something goes wrong. 991 G1CollectedHeap(G1CollectorPolicy* policy); 992 993 // Initialize the G1CollectedHeap to have the initial and 994 // maximum sizes and remembered and barrier sets 995 // specified by the policy object. 996 jint initialize(); 997 998 virtual void stop(); 999 1000 // Return the (conservative) maximum heap alignment for any G1 heap 1001 static size_t conservative_max_heap_alignment(); 1002 1003 // Initialize weak reference processing. 1004 virtual void ref_processing_init(); 1005 1006 // Explicitly import set_par_threads into this scope 1007 using SharedHeap::set_par_threads; 1008 // Set _n_par_threads according to a policy TBD. 1009 void set_par_threads(); 1010 1011 virtual CollectedHeap::Name kind() const { 1012 return CollectedHeap::G1CollectedHeap; 1013 } 1014 1015 // The current policy object for the collector. 1016 G1CollectorPolicy* g1_policy() const { return _g1_policy; } 1017 1018 virtual CollectorPolicy* collector_policy() const { return (CollectorPolicy*) g1_policy(); } 1019 1020 // Adaptive size policy. No such thing for g1. 1021 virtual AdaptiveSizePolicy* size_policy() { return NULL; } 1022 | 983 // update the remembered sets of the regions in the collection 984 // set in the event of an evacuation failure. 985 DirtyCardQueueSet& into_cset_dirty_card_queue_set() 986 { return _into_cset_dirty_card_queue_set; } 987 988 // Create a G1CollectedHeap with the specified policy. 989 // Must call the initialize method afterwards. 990 // May not return if something goes wrong. 991 G1CollectedHeap(G1CollectorPolicy* policy); 992 993 // Initialize the G1CollectedHeap to have the initial and 994 // maximum sizes and remembered and barrier sets 995 // specified by the policy object. 996 jint initialize(); 997 998 virtual void stop(); 999 1000 // Return the (conservative) maximum heap alignment for any G1 heap 1001 static size_t conservative_max_heap_alignment(); 1002 1003 // Does operations required after initialization has been done. 1004 void post_initialize(); 1005 1006 // Initialize weak reference processing. 1007 virtual void ref_processing_init(); 1008 1009 // Explicitly import set_par_threads into this scope 1010 using SharedHeap::set_par_threads; 1011 // Set _n_par_threads according to a policy TBD. 1012 void set_par_threads(); 1013 1014 virtual CollectedHeap::Name kind() const { 1015 return CollectedHeap::G1CollectedHeap; 1016 } 1017 1018 // The current policy object for the collector. 1019 G1CollectorPolicy* g1_policy() const { return _g1_policy; } 1020 1021 virtual CollectorPolicy* collector_policy() const { return (CollectorPolicy*) g1_policy(); } 1022 1023 // Adaptive size policy. No such thing for g1. 1024 virtual AdaptiveSizePolicy* size_policy() { return NULL; } 1025 |