equal
deleted
inserted
replaced
462 HeapWord* volatile* _top_at_rebuild_starts; |
462 HeapWord* volatile* _top_at_rebuild_starts; |
463 public: |
463 public: |
464 void add_to_liveness(uint worker_id, oop const obj, size_t size); |
464 void add_to_liveness(uint worker_id, oop const obj, size_t size); |
465 // Liveness of the given region as determined by concurrent marking, i.e. the amount of |
465 // Liveness of the given region as determined by concurrent marking, i.e. the amount of |
466 // live words between bottom and nTAMS. |
466 // live words between bottom and nTAMS. |
467 size_t liveness(uint region) { return _region_mark_stats[region]._live_words; } |
467 size_t liveness(uint region) const { return _region_mark_stats[region]._live_words; } |
468 |
468 |
469 // Sets the internal top_at_region_start for the given region to current top of the region. |
469 // Sets the internal top_at_region_start for the given region to current top of the region. |
470 inline void update_top_at_rebuild_start(HeapRegion* r); |
470 inline void update_top_at_rebuild_start(HeapRegion* r); |
471 // TARS for the given region during remembered set rebuilding. |
471 // TARS for the given region during remembered set rebuilding. |
472 inline HeapWord* top_at_rebuild_start(uint region) const; |
472 inline HeapWord* top_at_rebuild_start(uint region) const; |
838 |
838 |
839 // Class that's used to to print out per-region liveness |
839 // Class that's used to to print out per-region liveness |
840 // information. It's currently used at the end of marking and also |
840 // information. It's currently used at the end of marking and also |
841 // after we sort the old regions at the end of the cleanup operation. |
841 // after we sort the old regions at the end of the cleanup operation. |
842 class G1PrintRegionLivenessInfoClosure : public HeapRegionClosure { |
842 class G1PrintRegionLivenessInfoClosure : public HeapRegionClosure { |
843 private: |
|
844 // Accumulators for these values. |
843 // Accumulators for these values. |
845 size_t _total_used_bytes; |
844 size_t _total_used_bytes; |
846 size_t _total_capacity_bytes; |
845 size_t _total_capacity_bytes; |
847 size_t _total_prev_live_bytes; |
846 size_t _total_prev_live_bytes; |
848 size_t _total_next_live_bytes; |
847 size_t _total_next_live_bytes; |