equal
deleted
inserted
replaced
196 |
196 |
197 void PSParallelCompact::print_region_ranges() { |
197 void PSParallelCompact::print_region_ranges() { |
198 if (!log_develop_is_enabled(Trace, gc, compaction)) { |
198 if (!log_develop_is_enabled(Trace, gc, compaction)) { |
199 return; |
199 return; |
200 } |
200 } |
201 LogHandle(gc, compaction) log; |
201 Log(gc, compaction) log; |
202 ResourceMark rm; |
202 ResourceMark rm; |
203 Universe::print_on(log.trace_stream()); |
203 Universe::print_on(log.trace_stream()); |
204 log.trace("space bottom top end new_top"); |
204 log.trace("space bottom top end new_top"); |
205 log.trace("------ ---------- ---------- ---------- ----------"); |
205 log.trace("------ ---------- ---------- ---------- ----------"); |
206 |
206 |
2173 } |
2173 } |
2174 |
2174 |
2175 // Helper class to print 8 region numbers per line and then print the total at the end. |
2175 // Helper class to print 8 region numbers per line and then print the total at the end. |
2176 class FillableRegionLogger : public StackObj { |
2176 class FillableRegionLogger : public StackObj { |
2177 private: |
2177 private: |
2178 LogHandle(gc, compaction) log; |
2178 Log(gc, compaction) log; |
2179 static const int LineLength = 8; |
2179 static const int LineLength = 8; |
2180 size_t _regions[LineLength]; |
2180 size_t _regions[LineLength]; |
2181 int _next_index; |
2181 int _next_index; |
2182 bool _enabled; |
2182 bool _enabled; |
2183 size_t _total_regions; |
2183 size_t _total_regions; |
2375 { |
2375 { |
2376 if (!log_develop_is_enabled(Trace, gc, compaction)) { |
2376 if (!log_develop_is_enabled(Trace, gc, compaction)) { |
2377 return; |
2377 return; |
2378 } |
2378 } |
2379 |
2379 |
2380 LogHandle(gc, compaction) log; |
2380 Log(gc, compaction) log; |
2381 ResourceMark rm; |
2381 ResourceMark rm; |
2382 outputStream* out = log.trace_stream(); |
2382 outputStream* out = log.trace_stream(); |
2383 |
2383 |
2384 typedef ParallelCompactData::RegionData rd_t; |
2384 typedef ParallelCompactData::RegionData rd_t; |
2385 ParallelCompactData& sd = summary_data(); |
2385 ParallelCompactData& sd = summary_data(); |