943
944 RefToScanQueue *task_queue(uint i) const;
945
946 uint num_task_queues() const;
947
948 // A set of cards where updates happened during the GC
949 DirtyCardQueueSet& dirty_card_queue_set() { return _dirty_card_queue_set; }
950
951 // Create a G1CollectedHeap with the specified policy.
952 // Must call the initialize method afterwards.
953 // May not return if something goes wrong.
954 G1CollectedHeap(G1CollectorPolicy* policy);
955
956 // Initialize the G1CollectedHeap to have the initial and
957 // maximum sizes and remembered and barrier sets
958 // specified by the policy object.
959 jint initialize();
960
961 virtual void stop();
962
963 // Return the (conservative) maximum heap alignment for any G1 heap
964 static size_t conservative_max_heap_alignment();
965
966 // Does operations required after initialization has been done.
967 void post_initialize();
968
969 // Initialize weak reference processing.
970 void ref_processing_init();
971
972 virtual Name kind() const {
973 return CollectedHeap::G1CollectedHeap;
974 }
975
976 virtual const char* name() const {
977 return "G1";
978 }
979
980 const G1CollectorState* collector_state() const { return &_collector_state; }
981 G1CollectorState* collector_state() { return &_collector_state; }
982
983 // The current policy object for the collector.
984 G1Policy* g1_policy() const { return _g1_policy; }
985
|
943
944 RefToScanQueue *task_queue(uint i) const;
945
946 uint num_task_queues() const;
947
948 // A set of cards where updates happened during the GC
949 DirtyCardQueueSet& dirty_card_queue_set() { return _dirty_card_queue_set; }
950
951 // Create a G1CollectedHeap with the specified policy.
952 // Must call the initialize method afterwards.
953 // May not return if something goes wrong.
954 G1CollectedHeap(G1CollectorPolicy* policy);
955
956 // Initialize the G1CollectedHeap to have the initial and
957 // maximum sizes and remembered and barrier sets
958 // specified by the policy object.
959 jint initialize();
960
961 virtual void stop();
962
963 // Does operations required after initialization has been done.
964 void post_initialize();
965
966 // Initialize weak reference processing.
967 void ref_processing_init();
968
969 virtual Name kind() const {
970 return CollectedHeap::G1CollectedHeap;
971 }
972
973 virtual const char* name() const {
974 return "G1";
975 }
976
977 const G1CollectorState* collector_state() const { return &_collector_state; }
978 G1CollectorState* collector_state() { return &_collector_state; }
979
980 // The current policy object for the collector.
981 G1Policy* g1_policy() const { return _g1_policy; }
982
|