equal
deleted
inserted
replaced
150 _heap->prepare_heap_for_full_collection(); |
150 _heap->prepare_heap_for_full_collection(); |
151 |
151 |
152 reference_processor()->enable_discovery(); |
152 reference_processor()->enable_discovery(); |
153 reference_processor()->setup_policy(scope()->should_clear_soft_refs()); |
153 reference_processor()->setup_policy(scope()->should_clear_soft_refs()); |
154 |
154 |
155 // When collecting the permanent generation Method*s may be moving, |
|
156 // so we either have to flush all bcp data or convert it into bci. |
|
157 CodeCache::gc_prologue(); |
|
158 |
|
159 // We should save the marks of the currently locked biased monitors. |
155 // We should save the marks of the currently locked biased monitors. |
160 // The marking doesn't preserve the marks of biased objects. |
156 // The marking doesn't preserve the marks of biased objects. |
161 BiasedLocking::preserve_marks(); |
157 BiasedLocking::preserve_marks(); |
162 |
158 |
163 // Clear and activate derived pointer collection. |
159 // Clear and activate derived pointer collection. |
185 // When the pointers have been adjusted and moved, we can |
181 // When the pointers have been adjusted and moved, we can |
186 // update the derived pointer table. |
182 // update the derived pointer table. |
187 update_derived_pointers(); |
183 update_derived_pointers(); |
188 |
184 |
189 BiasedLocking::restore_marks(); |
185 BiasedLocking::restore_marks(); |
190 CodeCache::gc_epilogue(); |
|
191 JvmtiExport::gc_epilogue(); |
186 JvmtiExport::gc_epilogue(); |
192 |
187 |
193 _heap->prepare_heap_for_mutators(); |
188 _heap->prepare_heap_for_mutators(); |
194 |
189 |
195 _heap->policy()->record_full_collection_end(); |
190 _heap->policy()->record_full_collection_end(); |