equal
deleted
inserted
replaced
150 void PSOldGen::precompact() { |
150 void PSOldGen::precompact() { |
151 ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap(); |
151 ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap(); |
152 assert(heap->kind() == CollectedHeap::ParallelScavengeHeap, "Sanity"); |
152 assert(heap->kind() == CollectedHeap::ParallelScavengeHeap, "Sanity"); |
153 |
153 |
154 // Reset start array first. |
154 // Reset start array first. |
155 debug_only(if (!UseParallelOldGC || !VerifyParallelOldWithMarkSweep) {) |
|
156 start_array()->reset(); |
155 start_array()->reset(); |
157 debug_only(}) |
|
158 |
156 |
159 object_mark_sweep()->precompact(); |
157 object_mark_sweep()->precompact(); |
160 |
158 |
161 // Now compact the young gen |
159 // Now compact the young gen |
162 heap->young_gen()->precompact(); |
160 heap->young_gen()->precompact(); |