equal
deleted
inserted
replaced
93 |
93 |
94 // Helper class that provides functionality to generate the Live Data Count |
94 // Helper class that provides functionality to generate the Live Data Count |
95 // information. |
95 // information. |
96 class G1CardLiveDataHelper VALUE_OBJ_CLASS_SPEC { |
96 class G1CardLiveDataHelper VALUE_OBJ_CLASS_SPEC { |
97 private: |
97 private: |
98 BitMap _region_bm; |
98 BitMapView _region_bm; |
99 BitMap _card_bm; |
99 BitMapView _card_bm; |
100 |
100 |
101 // The card number of the bottom of the G1 heap. |
101 // The card number of the bottom of the G1 heap. |
102 // Used in biasing indices into accounting card bitmaps. |
102 // Used in biasing indices into accounting card bitmaps. |
103 BitMap::idx_t _heap_card_bias; |
103 BitMap::idx_t _heap_card_bias; |
104 |
104 |
391 workers->active_workers()); |
391 workers->active_workers()); |
392 workers->run_task(&cl); |
392 workers->run_task(&cl); |
393 } |
393 } |
394 |
394 |
395 class G1ClearCardLiveDataTask : public AbstractGangTask { |
395 class G1ClearCardLiveDataTask : public AbstractGangTask { |
396 BitMap _bitmap; |
396 BitMapView _bitmap; |
397 size_t _num_chunks; |
397 size_t _num_chunks; |
398 size_t _cur_chunk; |
398 size_t _cur_chunk; |
399 public: |
399 public: |
400 G1ClearCardLiveDataTask(BitMap bitmap, size_t num_tasks) : |
400 G1ClearCardLiveDataTask(const BitMapView& bitmap, size_t num_tasks) : |
401 AbstractGangTask("G1 Clear Card Live Data"), |
401 AbstractGangTask("G1 Clear Card Live Data"), |
402 _bitmap(bitmap), |
402 _bitmap(bitmap), |
403 _num_chunks(num_tasks), |
403 _num_chunks(num_tasks), |
404 _cur_chunk(0) { |
404 _cur_chunk(0) { |
405 } |
405 } |