mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 12:04:39 +02:00
Merge
This commit is contained in:
commit
90ed74aa8c
1529 changed files with 38080 additions and 9281 deletions
|
@ -2869,7 +2869,7 @@ void Metaspace::set_narrow_klass_base_and_shift(address metaspace_base, address
|
|||
|
||||
Universe::set_narrow_klass_base(lower_base);
|
||||
|
||||
if ((uint64_t)(higher_address - lower_base) < UnscaledClassSpaceMax) {
|
||||
if ((uint64_t)(higher_address - lower_base) <= UnscaledClassSpaceMax) {
|
||||
Universe::set_narrow_klass_shift(0);
|
||||
} else {
|
||||
assert(!UseSharedSpaces, "Cannot shift with UseSharedSpaces");
|
||||
|
@ -2885,7 +2885,7 @@ bool Metaspace::can_use_cds_with_metaspace_addr(char* metaspace_base, address cd
|
|||
address lower_base = MIN2((address)metaspace_base, cds_base);
|
||||
address higher_address = MAX2((address)(cds_base + FileMapInfo::shared_spaces_size()),
|
||||
(address)(metaspace_base + compressed_class_space_size()));
|
||||
return ((uint64_t)(higher_address - lower_base) < UnscaledClassSpaceMax);
|
||||
return ((uint64_t)(higher_address - lower_base) <= UnscaledClassSpaceMax);
|
||||
}
|
||||
|
||||
// Try to allocate the metaspace at the requested addr.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue