mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 12:04:39 +02:00
8031779: Assert in MetaspaceGC is always true
Reviewed-by: jmasa, jwilhelm
This commit is contained in:
parent
e962dec4b7
commit
3cd01085cd
1 changed files with 3 additions and 2 deletions
|
@ -1455,9 +1455,10 @@ void MetaspaceGC::compute_new_size() {
|
||||||
|
|
||||||
// No expansion, now see if we want to shrink
|
// No expansion, now see if we want to shrink
|
||||||
// We would never want to shrink more than this
|
// We would never want to shrink more than this
|
||||||
|
assert(capacity_until_GC >= minimum_desired_capacity,
|
||||||
|
err_msg(SIZE_FORMAT " >= " SIZE_FORMAT,
|
||||||
|
capacity_until_GC, minimum_desired_capacity));
|
||||||
size_t max_shrink_bytes = capacity_until_GC - minimum_desired_capacity;
|
size_t max_shrink_bytes = capacity_until_GC - minimum_desired_capacity;
|
||||||
assert(max_shrink_bytes >= 0, err_msg("max_shrink_bytes " SIZE_FORMAT,
|
|
||||||
max_shrink_bytes));
|
|
||||||
|
|
||||||
// Should shrinking be considered?
|
// Should shrinking be considered?
|
||||||
if (MaxMetaspaceFreeRatio < 100) {
|
if (MaxMetaspaceFreeRatio < 100) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue