8231774: ZGC: ZVirtualMemoryManager unmaps incorrect address
authorpliden
Thu, 03 Oct 2019 10:54:18 +0200
changeset 58452 61437e06602a
parent 58451 389e50d98dc3
child 58453 ca80b8395923
8231774: ZGC: ZVirtualMemoryManager unmaps incorrect address Reviewed-by: kbarrett, stefank
src/hotspot/os/posix/gc/z/zVirtualMemory_posix.cpp
--- a/src/hotspot/os/posix/gc/z/zVirtualMemory_posix.cpp	Fri Sep 27 09:01:39 2019 +0200
+++ b/src/hotspot/os/posix/gc/z/zVirtualMemory_posix.cpp	Thu Oct 03 10:54:18 2019 +0200
@@ -43,7 +43,7 @@
 
   if ((uintptr_t)res != start) {
     // Failed to reserve memory at the requested address
-    unmap(start, size);
+    unmap((uintptr_t)res, size);
     return false;
   }