changeset 58208:61437e06602a

8231774: ZGC: ZVirtualMemoryManager unmaps incorrect address Reviewed-by: kbarrett, stefank
author pliden
date Thu, 03 Oct 2019 10:54:18 +0200
parents 389e50d98dc3
children ca80b8395923
files src/hotspot/os/posix/gc/z/zVirtualMemory_posix.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
   }