--- a/hotspot/test/compiler/unsafe/UnsafeGetStableArrayElement.java Tue Mar 22 17:04:25 2016 +0000
+++ b/hotspot/test/compiler/unsafe/UnsafeGetStableArrayElement.java Tue Mar 22 18:41:09 2016 -0700
@@ -43,6 +43,7 @@
import static jdk.internal.misc.Unsafe.*;
import static jdk.test.lib.Asserts.*;
+import static jdk.test.lib.Platform;
public class UnsafeGetStableArrayElement {
@Stable static final boolean[] STABLE_BOOLEAN_ARRAY = new boolean[16];
@@ -219,6 +220,12 @@
}
public static void main(String[] args) throws Exception {
+ if (Platform.isServer()) {
+ test();
+ }
+ }
+
+ static void test() throws Exception {
// boolean[], aligned accesses
testMatched( Test::testZ_Z, Test::changeZ);
testMismatched(Test::testZ_B, Test::changeZ);