7195823: NPG: CMS reserved() doesn't match _rs.base()

If the commit fails, the size isn't set so the assert fails.

Reviewed-by: kamg
This commit is contained in:
Coleen Phillimore 2012-09-03 18:37:12 -04:00
parent 5c58d27aac
commit eff152a7be

View file

@ -1077,7 +1077,6 @@ bool VirtualSpaceNode::initialize() {
set_top((MetaWord*)virtual_space()->low());
set_reserved(MemRegion((HeapWord*)_rs.base(),
(HeapWord*)(_rs.base() + _rs.size())));
}
assert(reserved()->start() == (HeapWord*) _rs.base(),
err_msg("Reserved start was not set properly " PTR_FORMAT
@ -1086,6 +1085,7 @@ bool VirtualSpaceNode::initialize() {
err_msg("Reserved size was not set properly " SIZE_FORMAT
" != " SIZE_FORMAT, reserved()->word_size(),
_rs.size() / BytesPerWord));
}
return result;
}