Skip to content

Commit 9820f3d

Browse files
committed
8267371: Concurrent gtests take too long
Reviewed-by: shade, gziemski
1 parent 38d690b commit 9820f3d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

test/hotspot/gtest/memory/test_virtualspace.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ class ReservedSpaceRunnable : public TestRunnable {
664664

665665
TEST_VM(VirtualSpace, os_reserve_space_concurrent) {
666666
ReservedSpaceRunnable runnable;
667-
ConcurrentTestRunner testRunner(&runnable, 30, 15000);
667+
ConcurrentTestRunner testRunner(&runnable, 5, 3000);
668668
testRunner.run();
669669
}
670670

@@ -677,6 +677,6 @@ class VirtualSpaceRunnable : public TestRunnable {
677677

678678
TEST_VM(VirtualSpace, os_virtual_space_concurrent) {
679679
VirtualSpaceRunnable runnable;
680-
ConcurrentTestRunner testRunner(&runnable, 30, 15000);
680+
ConcurrentTestRunner testRunner(&runnable, 5, 3000);
681681
testRunner.run();
682682
}

test/hotspot/gtest/runtime/test_os_linux.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,11 @@ class ReserveMemorySpecialRunnable : public TestRunnable {
415415
};
416416

417417
TEST_VM(os_linux, reserve_memory_special_concurrent) {
418-
ReserveMemorySpecialRunnable runnable;
419-
ConcurrentTestRunner testRunner(&runnable, 30, 15000);
420-
testRunner.run();
418+
if (UseLargePages) {
419+
ReserveMemorySpecialRunnable runnable;
420+
ConcurrentTestRunner testRunner(&runnable, 5, 3000);
421+
testRunner.run();
422+
}
421423
}
422424

423425
#endif

0 commit comments

Comments
 (0)