changeset 56521:3ea18959a349

8223336: Assert in VirtualMemoryTracker::remove_released_region when running the SharedArchiveConsistency.java test with -XX:NativeMemoryTracking=detail Summary: added the missing call MemTracker::record_virtual_memory_reserve_and_commit() Reviewed-by: jiangli, zgu
author ccheung
date Fri, 31 May 2019 15:49:12 -0700
parents b564f266dda0
children d4890c3721be
files src/hotspot/os/windows/os_windows.cpp test/hotspot/jtreg/ProblemList.txt
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/os/windows/os_windows.cpp	Fri May 31 18:35:17 2019 -0400
+++ b/src/hotspot/os/windows/os_windows.cpp	Fri May 31 15:49:12 2019 -0700
@@ -4910,6 +4910,9 @@
       return NULL;
     }
 
+    // Record virtual memory allocation
+    MemTracker::record_virtual_memory_reserve_and_commit((address)addr, bytes, CALLER_PC);
+
     DWORD bytes_read;
     OVERLAPPED overlapped;
     overlapped.Offset = (DWORD)file_offset;
--- a/test/hotspot/jtreg/ProblemList.txt	Fri May 31 18:35:17 2019 -0400
+++ b/test/hotspot/jtreg/ProblemList.txt	Fri May 31 15:49:12 2019 -0700
@@ -81,7 +81,6 @@
 
 runtime/SharedArchiveFile/SASymbolTableTest.java 8193639 solaris-all
 runtime/jni/terminatedThread/TestTerminatedThread.java 8219652 aix-ppc64
-runtime/appcds/SharedArchiveConsistency.java 8223336 windows-all
 
 #############################################################################