mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
6730514: assertion failure in mangling code when expanding by 0 bytes
An expansion by 0 bytes was not anticipated when the assertion was composed. Reviewed-by: jjh, jcoomes, apetrusenko
This commit is contained in:
parent
b8633a3b01
commit
74b3de5c3b
9 changed files with 87 additions and 53 deletions
|
@ -39,7 +39,8 @@ bool SpaceMangler::is_mangled(HeapWord* q) {
|
|||
|
||||
void SpaceMangler::set_top_for_allocations(HeapWord* v) {
|
||||
if (v < end()) {
|
||||
assert(is_mangled(v), "The high water mark is not mangled");
|
||||
assert(!CheckZapUnusedHeapArea || is_mangled(v),
|
||||
"The high water mark is not mangled");
|
||||
}
|
||||
_top_for_allocations = v;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue