equal
deleted
inserted
replaced
326 } |
326 } |
327 |
327 |
328 return cl.valid(); |
328 return cl.valid(); |
329 } |
329 } |
330 |
330 |
331 class G1PrintCollectionSetClosure : public HeapRegionClosure { |
331 class G1PrintCollectionSetDetailClosure : public HeapRegionClosure { |
332 outputStream* _st; |
332 outputStream* _st; |
333 public: |
333 public: |
334 G1PrintCollectionSetClosure(outputStream* st) : HeapRegionClosure(), _st(st) { } |
334 G1PrintCollectionSetDetailClosure(outputStream* st) : HeapRegionClosure(), _st(st) { } |
335 |
335 |
336 virtual bool do_heap_region(HeapRegion* r) { |
336 virtual bool do_heap_region(HeapRegion* r) { |
337 assert(r->in_collection_set(), "Region %u should be in collection set", r->hrm_index()); |
337 assert(r->in_collection_set(), "Region %u should be in collection set", r->hrm_index()); |
338 _st->print_cr(" " HR_FORMAT ", P: " PTR_FORMAT "N: " PTR_FORMAT ", age: %4d", |
338 _st->print_cr(" " HR_FORMAT ", P: " PTR_FORMAT "N: " PTR_FORMAT ", age: %4d", |
339 HR_FORMAT_PARAMS(r), |
339 HR_FORMAT_PARAMS(r), |
345 }; |
345 }; |
346 |
346 |
347 void G1CollectionSet::print(outputStream* st) { |
347 void G1CollectionSet::print(outputStream* st) { |
348 st->print_cr("\nCollection_set:"); |
348 st->print_cr("\nCollection_set:"); |
349 |
349 |
350 G1PrintCollectionSetClosure cl(st); |
350 G1PrintCollectionSetDetailClosure cl(st); |
351 iterate(&cl); |
351 iterate(&cl); |
352 } |
352 } |
353 #endif // !PRODUCT |
353 #endif // !PRODUCT |
354 |
354 |
355 double G1CollectionSet::finalize_young_part(double target_pause_time_ms, G1SurvivorRegions* survivors) { |
355 double G1CollectionSet::finalize_young_part(double target_pause_time_ms, G1SurvivorRegions* survivors) { |