8223336: Assert in VirtualMemoryTracker::remove_released_region when running the SharedArchiveConsistency.java test with -XX:NativeMemoryTracking=detail

Added the missing call MemTracker::record_virtual_memory_reserve_and_commit()

Reviewed-by: jiangli, zgu
This commit is contained in:
Calvin Cheung 2019-05-31 15:49:12 -07:00
parent e36693bc29
commit 561c9182e8
2 changed files with 3 additions and 1 deletions

View File

@ -4910,6 +4910,9 @@ char* os::pd_map_memory(int fd, const char* file_name, size_t file_offset,
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;

View File

@ -81,7 +81,6 @@ gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java 8193639 solaris-all
runtime/SharedArchiveFile/SASymbolTableTest.java 8193639 solaris-all
runtime/jni/terminatedThread/TestTerminatedThread.java 8219652 aix-ppc64
runtime/appcds/SharedArchiveConsistency.java 8223336 windows-all
#############################################################################