File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
test/hotspot/jtreg/containers/docker Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,14 @@ public static void main(String[] args) throws Exception {
8282 }
8383
8484 private static void containerInfoTestCase () throws Exception {
85- // leave one CPU for system and tools, otherwise this test may be unstable
86- int maxNrOfAvailableCpus = availableCPUs - 1 ;
87- for ( int i = 1 ; i < maxNrOfAvailableCpus ; i = i * 2 ) {
88- for (int j = 64 ; j <= 256 ; j *= 2 ) {
89- testContainerInfo ( i , j );
90- }
85+ // Leave one CPU for system and tools, otherwise this test may be unstable.
86+ // Try the memory sizes that were verified by testMemory tests before.
87+ int maxNrOfAvailableCpus = availableCPUs - 1 ;
88+ for (int cpus = 1 ; cpus < maxNrOfAvailableCpus ; cpus *= 2 ) {
89+ for ( int mem : new int []{ 200 , 500 , 1024 }) {
90+ testContainerInfo ( cpus , mem );
9191 }
92+ }
9293 }
9394
9495 private static void testContainerInfo (int expectedCPUs , int expectedMemoryMB ) throws Exception {
You can’t perform that action at this time.
0 commit comments