Skip to content

Commit ac42c4c

Browse files
Victor RudometovPaul Hohensee
authored andcommitted
8302152: Speed up tests with infinite loops, sleep less
Backport-of: a9a53f417d017c6e92d1f0331359037815bd431e
1 parent 92684ef commit ac42c4c

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

test/hotspot/jtreg/compiler/loopopts/TestCMoveWithDeadPhi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -67,6 +67,6 @@ public void run() {
6767
// Give thread some time to trigger compilation
6868
thread.setDaemon(true);
6969
thread.start();
70-
Thread.sleep(Utils.adjustTimeout(4000));
70+
Thread.sleep(Utils.adjustTimeout(500));
7171
}
7272
}

test/hotspot/jtreg/compiler/loopopts/TestInfLoopNearUsePlacement.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -67,6 +67,6 @@ public void run() {
6767
thread.setDaemon(true);
6868
thread.start();
6969
// Give thread some time to trigger compilation
70-
Thread.sleep(Utils.adjustTimeout(5000));
70+
Thread.sleep(Utils.adjustTimeout(500));
7171
}
7272
}

test/hotspot/jtreg/compiler/loopopts/TestInfiniteLoopCCP.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright (c) 2021, Red Hat, Inc. All rights reserved.
3+
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
34
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
45
*
56
* This code is free software; you can redistribute it and/or modify it
@@ -72,6 +73,6 @@ public void run() {
7273
// Give thread some time to trigger compilation
7374
thread.setDaemon(true);
7475
thread.start();
75-
Thread.sleep(Utils.adjustTimeout(4000));
76+
Thread.sleep(Utils.adjustTimeout(500));
7677
}
7778
}

test/hotspot/jtreg/compiler/loopopts/TestInfiniteLoopNest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright (c) 2022, Red Hat, Inc. All rights reserved.
3+
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
34
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
45
*
56
* This code is free software; you can redistribute it and/or modify it
@@ -65,7 +66,7 @@ public void run() {
6566
// Give thread some time to trigger compilation
6667
thread.setDaemon(true);
6768
thread.start();
68-
Thread.sleep(Utils.adjustTimeout(4000));
69+
Thread.sleep(Utils.adjustTimeout(500));
6970
}
7071

7172
static Boolean b;

test/hotspot/jtreg/compiler/loopopts/TestStrangeControl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -47,6 +47,6 @@ public void run() {
4747
thread.setDaemon(true);
4848
thread.start();
4949
// Give thread executing strange control loop enough time to trigger OSR compilation
50-
Thread.sleep(Utils.adjustTimeout(4000));
50+
Thread.sleep(Utils.adjustTimeout(1000));
5151
}
5252
}

0 commit comments

Comments
 (0)