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