8231774: ZGC: ZVirtualMemoryManager unmaps incorrect address
Reviewed-by: kbarrett, stefank
This commit is contained in:
parent
3b181e51b1
commit
fb0197c5db
@ -43,7 +43,7 @@ static bool map(uintptr_t start, size_t size) {
|
||||
|
||||
if ((uintptr_t)res != start) {
|
||||
// Failed to reserve memory at the requested address
|
||||
unmap(start, size);
|
||||
unmap((uintptr_t)res, size);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user