Skip to content

Commit 5510145

Browse files
zzambersjerboaa
authored andcommittedDec 2, 2022
8226236: win32: gc/metaspace/TestCapacityUntilGCWrapAround.java fails
Backport-of: 038f58d4f0782f885547d2b052a47fdf2229cfe3
1 parent 77403ed commit 5510145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎hotspot/src/share/vm/memory/metaspace.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ bool MetaspaceGC::inc_capacity_until_GC(size_t v, size_t* new_cap_until_GC, size
14381438

14391439
if (new_value < capacity_until_GC) {
14401440
// The addition wrapped around, set new_value to aligned max value.
1441-
new_value = align_size_down(max_uintx, Metaspace::commit_alignment());
1441+
new_value = align_size_down(max_uintx, Metaspace::reserve_alignment());
14421442
}
14431443

14441444
if (new_value > MaxMetaspaceSize) {

0 commit comments

Comments
 (0)
Please sign in to comment.