3131
3232class PSVirtualSpace ;
3333
34- class ParMarkBitMap : public CHeapObj <mtGC>
35- {
34+ class ParMarkBitMap : public CHeapObj <mtGC> {
3635public:
3736 typedef BitMap::idx_t idx_t ;
3837
@@ -46,9 +45,6 @@ class ParMarkBitMap: public CHeapObj<mtGC>
4645 inline bool mark_obj (HeapWord* addr);
4746 inline bool mark_obj (oop obj);
4847
49- // Traditional interface for testing whether an object is marked or not (these
50- // test only the begin bits).
51- inline bool is_marked (idx_t bit) const ;
5248 inline bool is_marked (HeapWord* addr) const ;
5349 inline bool is_marked (oop obj) const ;
5450
@@ -57,18 +53,13 @@ class ParMarkBitMap: public CHeapObj<mtGC>
5753
5854 size_t reserved_byte_size () const { return _reserved_byte_size; }
5955
60- // Convert a heap address to/from a bit index.
61- inline idx_t addr_to_bit (HeapWord* addr) const ;
62- inline HeapWord* bit_to_addr (idx_t bit) const ;
63-
6456 inline HeapWord* find_obj_beg (HeapWord* beg, HeapWord* end) const ;
6557
6658 // Return the address of the last obj-start in the range [beg, end). If no
6759 // object is found, return end.
6860 inline HeapWord* find_obj_beg_reverse (HeapWord* beg, HeapWord* end) const ;
69- // Clear a range of bits or the entire bitmap (both begin and end bits are
70- // cleared).
71- inline void clear_range (idx_t beg, idx_t end);
61+ // Clear a range of bits corresponding to heap address range [beg, end).
62+ inline void clear_range (HeapWord* beg, HeapWord* end);
7263
7364 void print_on_error (outputStream* st) const {
7465 st->print_cr (" Marking Bits: (ParMarkBitMap*) " PTR_FORMAT, p2i (this ));
@@ -111,6 +102,10 @@ class ParMarkBitMap: public CHeapObj<mtGC>
111102 inline size_t region_size () const ;
112103 inline size_t size () const ;
113104
105+ // Convert a heap address to/from a bit index.
106+ inline idx_t addr_to_bit (HeapWord* addr) const ;
107+ inline HeapWord* bit_to_addr (idx_t bit) const ;
108+
114109#ifdef ASSERT
115110 inline void verify_bit (idx_t bit) const ;
116111 inline void verify_addr (HeapWord* addr) const ;
0 commit comments