Skip to content

Commit 038f58d

Browse files
committed
8226236: [TESTBUG] win32: gc/metaspace/TestCapacityUntilGCWrapAround.java fails
Reviewed-by: stuefe
1 parent 5194f11 commit 038f58d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/memory/metaspace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ bool MetaspaceGC::inc_capacity_until_GC(size_t v, size_t* new_cap_until_GC, size
152152

153153
if (new_value < old_capacity_until_GC) {
154154
// The addition wrapped around, set new_value to aligned max value.
155-
new_value = align_down(max_uintx, Metaspace::commit_alignment());
155+
new_value = align_down(max_uintx, Metaspace::reserve_alignment());
156156
}
157157

158158
if (new_value > MaxMetaspaceSize) {

0 commit comments

Comments
 (0)