< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahMarkBitMap.hpp

Print this page

142   ShenandoahMarkBitMap(MemRegion heap, MemRegion storage);
143 
144   // Mark word as 'strong' if it hasn't been marked strong yet.
145   // Return true if the word has been marked strong, false if it has already been
146   // marked strong or if another thread has beat us by marking it
147   // strong.
148   // Words that have been marked final before or by a concurrent thread will be
149   // upgraded to strong. In this case, this method also returns true.
150   inline bool mark_strong(HeapWord* w, bool& was_upgraded);
151 
152   // Mark word as 'weak' if it hasn't been marked weak or strong yet.
153   // Return true if the word has been marked weak, false if it has already been
154   // marked strong or weak or if another thread has beat us by marking it
155   // strong or weak.
156   inline bool mark_weak(HeapWord* heap_addr);
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

142   ShenandoahMarkBitMap(MemRegion heap, MemRegion storage);
143 
144   // Mark word as 'strong' if it hasn't been marked strong yet.
145   // Return true if the word has been marked strong, false if it has already been
146   // marked strong or if another thread has beat us by marking it
147   // strong.
148   // Words that have been marked final before or by a concurrent thread will be
149   // upgraded to strong. In this case, this method also returns true.
150   inline bool mark_strong(HeapWord* w, bool& was_upgraded);
151 
152   // Mark word as 'weak' if it hasn't been marked weak or strong yet.
153   // Return true if the word has been marked weak, false if it has already been
154   // marked strong or weak or if another thread has beat us by marking it
155   // strong or weak.
156   inline bool mark_weak(HeapWord* heap_addr);
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   bool is_bitmap_clear_range(const HeapWord* start, const HeapWord* end) const;
163 
164   // Return the address corresponding to the next marked bit at or after
165   // "addr", and before "limit", if "limit" is non-NULL.  If there is no
166   // such bit, returns "limit" if that is non-NULL, or else "endWord()".
167   HeapWord* get_next_marked_addr(const HeapWord* addr,
168                                  const HeapWord* limit) const;
169 
170   bm_word_t inverted_bit_mask_for_range(idx_t beg, idx_t end) const;
171   void  clear_range_within_word    (idx_t beg, idx_t end);
172   void clear_range (idx_t beg, idx_t end);
173   void clear_range_large(MemRegion mr);
174 
175   void clear_range_of_words(idx_t beg, idx_t end);
176   void clear_large_range_of_words(idx_t beg, idx_t end);
177   static void clear_range_of_words(bm_word_t* map, idx_t beg, idx_t end);
178 
179 };
180 
181 #endif // SHARE_VM_GC_SHENANDOAH_SHENANDOAHMARKBITMAP_HPP
< prev index next >