diff --git a/test/hotspot/gtest/gc/shared/test_collectorPolicy.cpp b/test/hotspot/gtest/gc/shared/test_collectorPolicy.cpp index 06874ee0698..a7d89dcfdd6 100644 --- a/test/hotspot/gtest/gc/shared/test_collectorPolicy.cpp +++ b/test/hotspot/gtest/gc/shared/test_collectorPolicy.cpp @@ -67,7 +67,7 @@ class TestGenCollectorPolicy { MinHeapSize = 40 * M; FLAG_SET_ERGO(InitialHeapSize, 100 * M); FLAG_SET_ERGO(NewSize, 1 * M); - FLAG_SET_ERGO(MaxNewSize, 40 * M); + FLAG_SET_ERGO(MaxNewSize, 50 * M); ASSERT_NO_FATAL_FAILURE(setter1->execute()); @@ -196,7 +196,7 @@ TEST_OTHER_VM(CollectorPolicy, young_cmd) { // If NewSize is set on command line, but is larger than the min // heap size, it should only be used for initial young size. - TestGenCollectorPolicy::SetNewSizeCmd setter_large(40 * M); - TestGenCollectorPolicy::CheckYoungInitial checker_large(40 * M); + TestGenCollectorPolicy::SetNewSizeCmd setter_large(50 * M); + TestGenCollectorPolicy::CheckYoungInitial checker_large(50 * M); TestGenCollectorPolicy::TestWrapper::test(&setter_large, &checker_large); }