157
158 inline bool is_marked(HeapWord* addr) const;
159 inline bool is_marked_strong(HeapWord* w) const;
160 inline bool is_marked_weak(HeapWord* addr) const;
161
162 // Return the address corresponding to the next marked bit at or after
163 // "addr", and before "limit", if "limit" is non-null. If there is no
164 // such bit, returns "limit" if that is non-null, or else "endWord()".
165 HeapWord* get_next_marked_addr(const HeapWord* addr,
166 const HeapWord* limit) const;
167
168 bm_word_t inverted_bit_mask_for_range(idx_t beg, idx_t end) const;
169 void clear_range_within_word (idx_t beg, idx_t end);
170 void clear_range (idx_t beg, idx_t end);
171 void clear_range_large(MemRegion mr);
172
173 void clear_range_of_words(idx_t beg, idx_t end);
174 void clear_large_range_of_words(idx_t beg, idx_t end);
175 static void clear_range_of_words(bm_word_t* map, idx_t beg, idx_t end);
176
177 };
178
179 #endif // SHARE_VM_GC_SHENANDOAH_SHENANDOAHMARKBITMAP_HPP
|
157
158 inline bool is_marked(HeapWord* addr) const;
159 inline bool is_marked_strong(HeapWord* w) const;
160 inline bool is_marked_weak(HeapWord* addr) const;
161
162 // Return the address corresponding to the next marked bit at or after
163 // "addr", and before "limit", if "limit" is non-null. If there is no
164 // such bit, returns "limit" if that is non-null, or else "endWord()".
165 HeapWord* get_next_marked_addr(const HeapWord* addr,
166 const HeapWord* limit) const;
167
168 bm_word_t inverted_bit_mask_for_range(idx_t beg, idx_t end) const;
169 void clear_range_within_word (idx_t beg, idx_t end);
170 void clear_range (idx_t beg, idx_t end);
171 void clear_range_large(MemRegion mr);
172
173 void clear_range_of_words(idx_t beg, idx_t end);
174 void clear_large_range_of_words(idx_t beg, idx_t end);
175 static void clear_range_of_words(bm_word_t* map, idx_t beg, idx_t end);
176
177 size_t count_marked(MemRegion mr) const;
178 };
179
180 #endif // SHARE_VM_GC_SHENANDOAH_SHENANDOAHMARKBITMAP_HPP
|