8223336: Assert in VirtualMemoryTracker::remove_released_region when running the SharedArchiveConsistency.java test with -XX:NativeMemoryTracking=detail
authorccheung
Fri, 31 May 2019 15:49:12 -0700
changeset 55139 3ea18959a349
parent 55138 b564f266dda0
child 55140 d4890c3721be
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
src/hotspot/os/windows/os_windows.cpp
test/hotspot/jtreg/ProblemList.txt
--- 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
 
 #############################################################################