hotspot/src/share/vm/memory/filemap.cpp
changeset 46630 75aa3e39d02c
parent 46625 edefffab74e2
child 46701 f559541c0daa
--- a/hotspot/src/share/vm/memory/filemap.cpp	Wed Jul 05 11:03:19 2017 -0700
+++ b/hotspot/src/share/vm/memory/filemap.cpp	Thu Jul 06 01:50:26 2017 +0200
@@ -151,7 +151,7 @@
 FileMapInfo::FileMapInfo() {
   assert(_current_info == NULL, "must be singleton"); // not thread safe
   _current_info = this;
-  memset(this, 0, sizeof(FileMapInfo));
+  memset((void*)this, 0, sizeof(FileMapInfo));
   _file_offset = 0;
   _file_open = false;
   _header = SharedClassUtil::allocate_file_map_header();