OpenJDK / jdk / jdk12
changeset 22499:33777708d0fc
8031779: Assert in MetaspaceGC is always true
Reviewed-by: jmasa, jwilhelm
author | ehelin |
---|---|
date | Thu, 16 Jan 2014 17:22:35 +0100 |
parents | ea9a64af590d |
children | b6f6a9f5c5d6 |
files | hotspot/src/share/vm/memory/metaspace.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hotspot/src/share/vm/memory/metaspace.cpp Tue Jan 14 14:26:43 2014 +0100 +++ b/hotspot/src/share/vm/memory/metaspace.cpp Thu Jan 16 17:22:35 2014 +0100 @@ -1455,9 +1455,10 @@ // No expansion, now see if we want to shrink // 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; - assert(max_shrink_bytes >= 0, err_msg("max_shrink_bytes " SIZE_FORMAT, - max_shrink_bytes)); // Should shrinking be considered? if (MaxMetaspaceFreeRatio < 100) {