mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8141501: Problems with BitMap buffer management
Reviewed-by: pliden, kbarrett
This commit is contained in:
parent
46d52062aa
commit
f8be292b88
41 changed files with 539 additions and 319 deletions
|
@ -5666,10 +5666,9 @@ bool CMSBitMap::allocate(MemRegion mr) {
|
|||
}
|
||||
assert(_virtual_space.committed_size() == brs.size(),
|
||||
"didn't reserve backing store for all of CMS bit map?");
|
||||
_bm.set_map((BitMap::bm_word_t*)_virtual_space.low());
|
||||
assert(_virtual_space.committed_size() << (_shifter + LogBitsPerByte) >=
|
||||
_bmWordSize, "inconsistency in bit map sizing");
|
||||
_bm.set_size(_bmWordSize >> _shifter);
|
||||
_bm = BitMapView((BitMap::bm_word_t*)_virtual_space.low(), _bmWordSize >> _shifter);
|
||||
|
||||
// bm.clear(); // can we rely on getting zero'd memory? verify below
|
||||
assert(isAllClear(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue