diff -r 8eeacdc76bf2 -r 75aa3e39d02c hotspot/src/share/vm/memory/filemap.cpp --- 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();