8302152: Speed up tests with infinite loops, sleep less

Reviewed-by: thartmann, kvn
This commit is contained in:
Emanuel Peter 2023-02-15 07:35:23 +00:00
parent 98a392c4fc
commit a9a53f417d
5 changed files with 10 additions and 8 deletions

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -67,6 +67,6 @@ public class TestCMoveWithDeadPhi {
// Give thread some time to trigger compilation
thread.setDaemon(true);
thread.start();
Thread.sleep(Utils.adjustTimeout(4000));
Thread.sleep(Utils.adjustTimeout(500));
}
}

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -67,6 +67,6 @@ public class TestInfLoopNearUsePlacement {
thread.setDaemon(true);
thread.start();
// Give thread some time to trigger compilation
Thread.sleep(Utils.adjustTimeout(5000));
Thread.sleep(Utils.adjustTimeout(500));
}
}

@ -1,5 +1,6 @@
/*
* Copyright (c) 2021, Red Hat, Inc. All rights reserved.
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -72,6 +73,6 @@ public class TestInfiniteLoopCCP {
// Give thread some time to trigger compilation
thread.setDaemon(true);
thread.start();
Thread.sleep(Utils.adjustTimeout(4000));
Thread.sleep(Utils.adjustTimeout(500));
}
}

@ -1,5 +1,6 @@
/*
* Copyright (c) 2022, Red Hat, Inc. All rights reserved.
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -65,7 +66,7 @@ public class TestInfiniteLoopNest {
// Give thread some time to trigger compilation
thread.setDaemon(true);
thread.start();
Thread.sleep(Utils.adjustTimeout(4000));
Thread.sleep(Utils.adjustTimeout(500));
}
static Boolean b;

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -47,6 +47,6 @@ public class TestStrangeControl {
thread.setDaemon(true);
thread.start();
// Give thread executing strange control loop enough time to trigger OSR compilation
Thread.sleep(Utils.adjustTimeout(4000));
Thread.sleep(Utils.adjustTimeout(1000));
}
}