1059 // A set of cards where updates happened during the GC 1060 DirtyCardQueueSet& dirty_card_queue_set() { return _dirty_card_queue_set; } 1061 1062 // A DirtyCardQueueSet that is used to hold cards that contain 1063 // references into the current collection set. This is used to 1064 // update the remembered sets of the regions in the collection 1065 // set in the event of an evacuation failure. 1066 DirtyCardQueueSet& into_cset_dirty_card_queue_set() 1067 { return _into_cset_dirty_card_queue_set; } 1068 1069 // Create a G1CollectedHeap with the specified policy. 1070 // Must call the initialize method afterwards. 1071 // May not return if something goes wrong. 1072 G1CollectedHeap(G1CollectorPolicy* policy); 1073 1074 // Initialize the G1CollectedHeap to have the initial and 1075 // maximum sizes and remembered and barrier sets 1076 // specified by the policy object. 1077 jint initialize(); 1078 1079 // Initialize weak reference processing. 1080 virtual void ref_processing_init(); 1081 1082 void set_par_threads(uint t) { 1083 SharedHeap::set_par_threads(t); 1084 // Done in SharedHeap but oddly there are 1085 // two _process_strong_tasks's in a G1CollectedHeap 1086 // so do it here too. 1087 _process_strong_tasks->set_n_threads(t); 1088 } 1089 1090 // Set _n_par_threads according to a policy TBD. 1091 void set_par_threads(); 1092 1093 void set_n_termination(int t) { 1094 _process_strong_tasks->set_n_threads(t); 1095 } 1096 1097 virtual CollectedHeap::Name kind() const { 1098 return CollectedHeap::G1CollectedHeap; | 1059 // A set of cards where updates happened during the GC 1060 DirtyCardQueueSet& dirty_card_queue_set() { return _dirty_card_queue_set; } 1061 1062 // A DirtyCardQueueSet that is used to hold cards that contain 1063 // references into the current collection set. This is used to 1064 // update the remembered sets of the regions in the collection 1065 // set in the event of an evacuation failure. 1066 DirtyCardQueueSet& into_cset_dirty_card_queue_set() 1067 { return _into_cset_dirty_card_queue_set; } 1068 1069 // Create a G1CollectedHeap with the specified policy. 1070 // Must call the initialize method afterwards. 1071 // May not return if something goes wrong. 1072 G1CollectedHeap(G1CollectorPolicy* policy); 1073 1074 // Initialize the G1CollectedHeap to have the initial and 1075 // maximum sizes and remembered and barrier sets 1076 // specified by the policy object. 1077 jint initialize(); 1078 1079 // return the (conservative) maximum heap alignment for any G1 heap 1080 static size_t max_heap_alignment(); 1081 1082 // Initialize weak reference processing. 1083 virtual void ref_processing_init(); 1084 1085 void set_par_threads(uint t) { 1086 SharedHeap::set_par_threads(t); 1087 // Done in SharedHeap but oddly there are 1088 // two _process_strong_tasks's in a G1CollectedHeap 1089 // so do it here too. 1090 _process_strong_tasks->set_n_threads(t); 1091 } 1092 1093 // Set _n_par_threads according to a policy TBD. 1094 void set_par_threads(); 1095 1096 void set_n_termination(int t) { 1097 _process_strong_tasks->set_n_threads(t); 1098 } 1099 1100 virtual CollectedHeap::Name kind() const { 1101 return CollectedHeap::G1CollectedHeap; |