< prev index next >

src/hotspot/share/memory/metaspaceShared.cpp

Print this page

*** 1228,1238 **** } p = _rw_region.allocate(bytes, alignment); newtop = _rw_region.top(); } memcpy(p, obj, bytes); - assert(_new_loc_table->lookup(obj) == NULL, "each object can be relocated at most once"); _new_loc_table->add(obj, (address)p); log_trace(cds)("Copy: " PTR_FORMAT " ==> " PTR_FORMAT " %d", p2i(obj), p2i(p), bytes); if (_new_loc_table->maybe_grow(MAX_TABLE_SIZE)) { log_info(cds, hashtables)("Expanded _new_loc_table to %d", _new_loc_table->table_size()); --- 1228,1237 ----
*** 1352,1361 **** --- 1351,1361 ---- IsRefInArchiveChecker checker; iterate_roots(&checker); } #endif + // cleanup _ssc = NULL; } // We must relocate the System::_well_known_klasses only after we have copied the
< prev index next >