src/hotspot/share/memory/filemap.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/hotspot/share/memory/filemap.cpp	Sun Apr  8 23:07:22 2018
--- new/src/hotspot/share/memory/filemap.cpp	Sun Apr  8 23:07:22 2018

*** 333,342 **** --- 333,343 ---- i++; } assert(i == num_entries, "number of shared path entry mismatch"); } + // This function should only be called during run time with UseSharedSpaces enabled. bool FileMapInfo::validate_shared_path_table() { _validating_shared_path_table = true; _shared_path_table = _header->_shared_path_table; _shared_path_entry_size = _header->_shared_path_entry_size;
*** 1007,1016 **** --- 1008,1018 ---- size_t sz = data_size() - (buf - header); int crc = ClassLoader::crc32(0, buf, (jint)sz); return crc; } + // This function should only be called during run time with UseSharedSpaces enabled. bool FileMapInfo::FileMapHeader::validate() { if (VerifySharedSpaces && compute_crc() != _crc) { fail_continue("Header checksum verification failed."); return false; }

src/hotspot/share/memory/filemap.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File