8226236: [TESTBUG] win32: gc/metaspace/TestCapacityUntilGCWrapAround.java fails

Reviewed-by: stuefe
This commit is contained in:
Yasumasa Suenaga 2020-10-15 00:21:42 +00:00
parent 5194f11bc7
commit 038f58d4f0

View File

@ -152,7 +152,7 @@ bool MetaspaceGC::inc_capacity_until_GC(size_t v, size_t* new_cap_until_GC, size
if (new_value < old_capacity_until_GC) {
// The addition wrapped around, set new_value to aligned max value.
new_value = align_down(max_uintx, Metaspace::commit_alignment());
new_value = align_down(max_uintx, Metaspace::reserve_alignment());
}
if (new_value > MaxMetaspaceSize) {