Skip to content

Commit 3844ce4

Browse files
committed
8261247: some compiler/whitebox/ tests fail w/ DeoptimizeALot
Reviewed-by: kvn
1 parent f2d0152 commit 3844ce4

11 files changed

+42
-12
lines changed

test/hotspot/jtreg/compiler/whitebox/BlockingCompilation.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@
2525
* @test
2626
* @bug 8150646 8153013
2727
* @summary Add support for blocking compiles through whitebox API
28-
* @requires vm.compiler1.enabled | !vm.graal.enabled
2928
* @modules java.base/jdk.internal.misc
3029
* @library /test/lib /
30+
*
31+
* @requires vm.compiler1.enabled | !vm.graal.enabled
32+
* @requires vm.opt.DeoptimizeALot != true
33+
*
3134
* @build sun.hotspot.WhiteBox
3235
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
3336
* @run main/othervm

test/hotspot/jtreg/compiler/whitebox/ClearMethodStateTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
* @library /test/lib /
2929
* @modules java.base/jdk.internal.misc
3030
* java.management
31+
*
32+
* @requires vm.opt.DeoptimizeALot != true
33+
*
3134
* @build sun.hotspot.WhiteBox
3235
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
3336
* @run main/othervm -Xbootclasspath/a:. -Xmixed -XX:+UnlockDiagnosticVMOptions

test/hotspot/jtreg/compiler/whitebox/DeoptimizeAllTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2021, 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
@@ -28,6 +28,9 @@
2828
* @library /test/lib /
2929
* @modules java.base/jdk.internal.misc
3030
* java.management
31+
*
32+
* @requires vm.opt.DeoptimizeALot != true
33+
*
3134
* @build sun.hotspot.WhiteBox
3235
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
3336
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions

test/hotspot/jtreg/compiler/whitebox/DeoptimizeFramesTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2021, 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
@@ -28,6 +28,9 @@
2828
* @library /test/lib /
2929
* @modules java.base/jdk.internal.misc
3030
* java.management
31+
*
32+
* @requires vm.opt.DeoptimizeALot != true
33+
*
3134
* @build sun.hotspot.WhiteBox
3235
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
3336
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions

test/hotspot/jtreg/compiler/whitebox/DeoptimizeMultipleOSRTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2021, 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
@@ -29,6 +29,9 @@
2929
* @library /test/lib /
3030
* @modules java.base/jdk.internal.misc
3131
* java.management
32+
*
33+
* @requires vm.opt.DeoptimizeALot != true
34+
*
3235
* @build sun.hotspot.WhiteBox
3336
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
3437
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI

test/hotspot/jtreg/compiler/whitebox/EnqueueMethodForCompilationTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2021, 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
@@ -28,6 +28,9 @@
2828
* @library /test/lib /
2929
* @modules java.base/jdk.internal.misc
3030
* java.management
31+
*
32+
* @requires vm.opt.DeoptimizeALot != true
33+
*
3134
* @build sun.hotspot.WhiteBox
3235
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
3336
* @run main/othervm -Xbootclasspath/a:. -Xmixed -XX:+UnlockDiagnosticVMOptions

test/hotspot/jtreg/compiler/whitebox/ForceNMethodSweepTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2021, 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
@@ -28,6 +28,9 @@
2828
* @library /test/lib /
2929
* @modules java.base/jdk.internal.misc
3030
* java.management
31+
*
32+
* @requires vm.opt.DeoptimizeALot != true
33+
*
3134
* @build sun.hotspot.WhiteBox
3235
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
3336
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions

test/hotspot/jtreg/compiler/whitebox/GetNMethodTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2021, 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
@@ -28,6 +28,9 @@
2828
* @library /test/lib /
2929
* @modules java.base/jdk.internal.misc
3030
* java.management
31+
*
32+
* @requires vm.opt.DeoptimizeALot != true
33+
*
3134
* @build sun.hotspot.WhiteBox
3235
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
3336
* @run main/othervm -Xbootclasspath/a:. -Xmixed -XX:+UnlockDiagnosticVMOptions

test/hotspot/jtreg/compiler/whitebox/IsMethodCompilableTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2021, 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
@@ -25,12 +25,14 @@
2525
* @test IsMethodCompilableTest
2626
* @bug 8007270 8006683 8007288 8022832
2727
* @summary testing of WB::isMethodCompilable()
28-
* @requires vm.flavor == "server" & (vm.opt.TieredStopAtLevel == null | vm.opt.TieredStopAtLevel == 4)
29-
* @requires !vm.emulatedClient
3028
* @library /test/lib /
3129
* @modules java.base/jdk.internal.misc
3230
* java.management
3331
*
32+
* @requires vm.opt.DeoptimizeALot != true
33+
* @requires vm.flavor == "server" & (vm.opt.TieredStopAtLevel == null | vm.opt.TieredStopAtLevel == 4)
34+
* @requires !vm.emulatedClient
35+
*
3436
* @build sun.hotspot.WhiteBox
3537
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
3638
* @run main/othervm/timeout=2400 -XX:-TieredCompilation -Xmixed

test/hotspot/jtreg/compiler/whitebox/MakeMethodNotCompilableTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2021, 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
@@ -28,6 +28,9 @@
2828
* @library /test/lib /
2929
* @modules java.base/jdk.internal.misc
3030
* java.management
31+
*
32+
* @requires vm.opt.DeoptimizeALot != true
33+
*
3134
* @build sun.hotspot.WhiteBox
3235
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
3336
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions

test/hotspot/jtreg/compiler/whitebox/OSRFailureLevel4Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2021, 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
@@ -28,6 +28,7 @@
2828
* @modules java.base/jdk.internal.misc
2929
* java.management
3030
*
31+
* @requires vm.opt.DeoptimizeALot != true
3132
* @comment the test can't be run w/ TieredStopAtLevel < 4
3233
* @requires vm.flavor == "server" & (vm.opt.TieredStopAtLevel == null | vm.opt.TieredStopAtLevel == 4)
3334
*

0 commit comments

Comments
 (0)