Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/concurrentMark.cpp @ 6750:859cd1a76f8a
7197906: BlockOffsetArray::power_to_cards_back() needs to handle > 32 bit shifts
Reviewed-by: brutisso, johnc, ysr
Contributed-by: Hal Mo <kungu.mjh@taobao.com>
author | brutisso |
---|---|
date | Thu, 13 Sep 2012 21:20:26 +0200 |
parents | da91efe96a93 |
children | 988bf00cc564 |
comparison
equal
deleted
inserted
replaced
6749:a6fe94b9759f | 6750:859cd1a76f8a |
---|---|
108 } | 108 } |
109 | 109 |
110 #ifndef PRODUCT | 110 #ifndef PRODUCT |
111 bool CMBitMapRO::covers(ReservedSpace rs) const { | 111 bool CMBitMapRO::covers(ReservedSpace rs) const { |
112 // assert(_bm.map() == _virtual_space.low(), "map inconsistency"); | 112 // assert(_bm.map() == _virtual_space.low(), "map inconsistency"); |
113 assert(((size_t)_bm.size() * (size_t)(1 << _shifter)) == _bmWordSize, | 113 assert(((size_t)_bm.size() * ((size_t)1 << _shifter)) == _bmWordSize, |
114 "size inconsistency"); | 114 "size inconsistency"); |
115 return _bmStartWord == (HeapWord*)(rs.base()) && | 115 return _bmStartWord == (HeapWord*)(rs.base()) && |
116 _bmWordSize == rs.size()>>LogHeapWordSize; | 116 _bmWordSize == rs.size()>>LogHeapWordSize; |
117 } | 117 } |
118 #endif | 118 #endif |