1076 DirtyCardQueueSet& dirty_card_queue_set() { return _dirty_card_queue_set; }
1077
1078 // A DirtyCardQueueSet that is used to hold cards that contain
1079 // references into the current collection set. This is used to
1080 // update the remembered sets of the regions in the collection
1081 // set in the event of an evacuation failure.
1082 DirtyCardQueueSet& into_cset_dirty_card_queue_set()
1083 { return _into_cset_dirty_card_queue_set; }
1084
1085 // Create a G1CollectedHeap with the specified policy.
1086 // Must call the initialize method afterwards.
1087 // May not return if something goes wrong.
1088 G1CollectedHeap(G1CollectorPolicy* policy);
1089
1090 // Initialize the G1CollectedHeap to have the initial and
1091 // maximum sizes and remembered and barrier sets
1092 // specified by the policy object.
1093 jint initialize();
1094
1095 // Return the (conservative) maximum heap alignment for any G1 heap
1096 static size_t conservative_max_heap_alignment();
1097
1098 // Initialize weak reference processing.
1099 virtual void ref_processing_init();
1100
1101 void set_par_threads(uint t) {
1102 SharedHeap::set_par_threads(t);
1103 // Done in SharedHeap but oddly there are
1104 // two _process_strong_tasks's in a G1CollectedHeap
1105 // so do it here too.
1106 _process_strong_tasks->set_n_threads(t);
1107 }
1108
1109 // Set _n_par_threads according to a policy TBD.
1110 void set_par_threads();
1111
1112 void set_n_termination(int t) {
1113 _process_strong_tasks->set_n_threads(t);
1114 }
1115
1116 virtual CollectedHeap::Name kind() const {
|
1076 DirtyCardQueueSet& dirty_card_queue_set() { return _dirty_card_queue_set; }
1077
1078 // A DirtyCardQueueSet that is used to hold cards that contain
1079 // references into the current collection set. This is used to
1080 // update the remembered sets of the regions in the collection
1081 // set in the event of an evacuation failure.
1082 DirtyCardQueueSet& into_cset_dirty_card_queue_set()
1083 { return _into_cset_dirty_card_queue_set; }
1084
1085 // Create a G1CollectedHeap with the specified policy.
1086 // Must call the initialize method afterwards.
1087 // May not return if something goes wrong.
1088 G1CollectedHeap(G1CollectorPolicy* policy);
1089
1090 // Initialize the G1CollectedHeap to have the initial and
1091 // maximum sizes and remembered and barrier sets
1092 // specified by the policy object.
1093 jint initialize();
1094
1095 // Return the (conservative) maximum heap alignment for any G1 heap
1096 static size_t conservative_max_heap_alignment() {
1097 return HeapRegion::max_region_size();
1098 }
1099
1100 // Initialize weak reference processing.
1101 virtual void ref_processing_init();
1102
1103 void set_par_threads(uint t) {
1104 SharedHeap::set_par_threads(t);
1105 // Done in SharedHeap but oddly there are
1106 // two _process_strong_tasks's in a G1CollectedHeap
1107 // so do it here too.
1108 _process_strong_tasks->set_n_threads(t);
1109 }
1110
1111 // Set _n_par_threads according to a policy TBD.
1112 void set_par_threads();
1113
1114 void set_n_termination(int t) {
1115 _process_strong_tasks->set_n_threads(t);
1116 }
1117
1118 virtual CollectedHeap::Name kind() const {
|