< prev index next >
src/hotspot/share/memory/metaspaceShared.cpp
Print this page
*** 423,433 ****
}
}
}
void MetaspaceShared::commit_shared_space_to(char* newtop) {
! assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "dump-time only");
char* base = _shared_rs.base();
size_t need_committed_size = newtop - base;
size_t has_committed_size = _shared_vs.committed_size();
if (need_committed_size < has_committed_size) {
return;
--- 423,433 ----
}
}
}
void MetaspaceShared::commit_shared_space_to(char* newtop) {
! Arguments::assert_is_dumping_archive();
char* base = _shared_rs.base();
size_t need_committed_size = newtop - base;
size_t has_committed_size = _shared_vs.committed_size();
if (need_committed_size < has_committed_size) {
return;
*** 507,518 ****
assert(_i2i_entry_code_buffers_size == total_size, "must not change");
return _i2i_entry_code_buffers;
}
uintx MetaspaceShared::object_delta_uintx(void* obj) {
! assert(DumpSharedSpaces || DynamicDumpSharedSpaces,
! "supported only for dumping");
if (DumpSharedSpaces) {
assert(shared_rs()->contains(obj), "must be");
} else {
assert(is_in_shared_metaspace(obj) || DynamicArchive::is_in_target_space(obj), "must be");
}
--- 507,517 ----
assert(_i2i_entry_code_buffers_size == total_size, "must not change");
return _i2i_entry_code_buffers;
}
uintx MetaspaceShared::object_delta_uintx(void* obj) {
! Arguments::assert_is_dumping_archive();
if (DumpSharedSpaces) {
assert(shared_rs()->contains(obj), "must be");
} else {
assert(is_in_shared_metaspace(obj) || DynamicArchive::is_in_target_space(obj), "must be");
}
< prev index next >