8231774: ZGC: ZVirtualMemoryManager unmaps incorrect address

Reviewed-by: kbarrett, stefank
This commit is contained in:
Per Lidén 2019-10-03 10:54:18 +02:00
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;
}