mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6984368: Large default heap size does not allow to use zero based compressed oops
Take into account HeapBaseMinAddress and round down MaxPermSize Reviewed-by: never
This commit is contained in:
parent
e65f42fe5e
commit
7df5e956d1
2 changed files with 7 additions and 2 deletions
|
@ -32,7 +32,11 @@ void CollectorPolicy::initialize_flags() {
|
|||
MaxPermSize = PermSize;
|
||||
}
|
||||
PermSize = MAX2(min_alignment(), align_size_down_(PermSize, min_alignment()));
|
||||
MaxPermSize = align_size_up(MaxPermSize, max_alignment());
|
||||
// Don't increase Perm size limit above specified.
|
||||
MaxPermSize = align_size_down(MaxPermSize, max_alignment());
|
||||
if (PermSize > MaxPermSize) {
|
||||
PermSize = MaxPermSize;
|
||||
}
|
||||
|
||||
MinPermHeapExpansion = MAX2(min_alignment(), align_size_down_(MinPermHeapExpansion, min_alignment()));
|
||||
MaxPermHeapExpansion = MAX2(min_alignment(), align_size_down_(MaxPermHeapExpansion, min_alignment()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue