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 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
1026 // The rem set and barrier set.
1027 G1RemSet* g1_rem_set() const { return _g1_rem_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 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 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
1026 // The rem set and barrier set.
1027 G1RemSet* g1_rem_set() const { return _g1_rem_set; }
|