equal
deleted
inserted
replaced
23 |
23 |
24 /* |
24 /* |
25 * @test NullCheckDroppingsTest |
25 * @test NullCheckDroppingsTest |
26 * @bug 8054492 |
26 * @bug 8054492 |
27 * @summary Casting can result in redundant null checks in generated code |
27 * @summary Casting can result in redundant null checks in generated code |
28 * @requires vm.flavor == "server" |
28 * @requires vm.flavor == "server" & !vm.emulatedClient |
29 * @library /test/lib |
29 * @library /test/lib |
30 * @modules java.base/jdk.internal.misc |
30 * @modules java.base/jdk.internal.misc |
31 * java.management |
31 * java.management |
32 * |
32 * |
33 * @build sun.hotspot.WhiteBox |
33 * @build sun.hotspot.WhiteBox |
82 String ssink; |
82 String ssink; |
83 Integer isink; |
83 Integer isink; |
84 int[] asink; |
84 int[] asink; |
85 |
85 |
86 public static void main(String[] args) throws Exception { |
86 public static void main(String[] args) throws Exception { |
87 if (!Platform.isServer()) { |
87 if (!Platform.isServer() || Platform.isEmulatedClient()) { |
88 throw new Error("TESTBUG: Not server VM"); |
88 throw new Error("TESTBUG: Not server mode"); |
89 } |
89 } |
90 // Make sure background compilation is disabled |
90 // Make sure background compilation is disabled |
91 if (WHITE_BOX.getBooleanVMFlag("BackgroundCompilation")) { |
91 if (WHITE_BOX.getBooleanVMFlag("BackgroundCompilation")) { |
92 throw new Error("TESTBUG: Background compilation enabled"); |
92 throw new Error("TESTBUG: Background compilation enabled"); |
93 } |
93 } |