122 // we absolutely __must__ clear soft refs?
123 bool must_clear_all_soft_refs();
124
125 public:
126 GenCollectedHeap(GenCollectorPolicy *policy);
127
128 GCStats* gc_stats(int level) const;
129
130 // Returns JNI_OK on success
131 virtual jint initialize();
132
133 // Reserve aligned space for the heap as needed by the contained generations.
134 char* allocate(size_t alignment, ReservedSpace* heap_rs);
135
136 // Does operations required after initialization has been done.
137 void post_initialize();
138
139 // Initialize ("weak") refs processing support
140 virtual void ref_processing_init();
141
142 virtual CollectedHeap::Name kind() const {
143 return CollectedHeap::GenCollectedHeap;
144 }
145
146 Generation* young_gen() const { return _young_gen; }
147 Generation* old_gen() const { return _old_gen; }
148
149 // The generational collector policy.
150 GenCollectorPolicy* gen_policy() const { return _gen_policy; }
151
152 virtual CollectorPolicy* collector_policy() const { return (CollectorPolicy*) gen_policy(); }
153
154 // Adaptive size policy
155 virtual AdaptiveSizePolicy* size_policy() {
156 return gen_policy()->size_policy();
157 }
158
159 // Return the (conservative) maximum heap alignment
160 static size_t conservative_max_heap_alignment() {
161 return Generation::GenGrain;
162 }
|
122 // we absolutely __must__ clear soft refs?
123 bool must_clear_all_soft_refs();
124
125 public:
126 GenCollectedHeap(GenCollectorPolicy *policy);
127
128 GCStats* gc_stats(int level) const;
129
130 // Returns JNI_OK on success
131 virtual jint initialize();
132
133 // Reserve aligned space for the heap as needed by the contained generations.
134 char* allocate(size_t alignment, ReservedSpace* heap_rs);
135
136 // Does operations required after initialization has been done.
137 void post_initialize();
138
139 // Initialize ("weak") refs processing support
140 virtual void ref_processing_init();
141
142 virtual Name kind() const {
143 return CollectedHeap::GenCollectedHeap;
144 }
145
146 Generation* young_gen() const { return _young_gen; }
147 Generation* old_gen() const { return _old_gen; }
148
149 // The generational collector policy.
150 GenCollectorPolicy* gen_policy() const { return _gen_policy; }
151
152 virtual CollectorPolicy* collector_policy() const { return (CollectorPolicy*) gen_policy(); }
153
154 // Adaptive size policy
155 virtual AdaptiveSizePolicy* size_policy() {
156 return gen_policy()->size_policy();
157 }
158
159 // Return the (conservative) maximum heap alignment
160 static size_t conservative_max_heap_alignment() {
161 return Generation::GenGrain;
162 }
|