--- old/src/share/vm/memory/filemap.cpp 2017-07-03 08:28:27.000000000 -0700 +++ new/src/share/vm/memory/filemap.cpp 2017-07-03 08:28:27.000000000 -0700 @@ -150,7 +150,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();