test/compiler/unsafe/UnsafeGetStableArrayElement.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff test/compiler/unsafe/UnsafeGetStableArrayElement.java
test/compiler/unsafe/UnsafeGetStableArrayElement.java
Print this page
*** 25,35 ****
/*
* @test
* @summary tests on constant folding of unsafe get operations from stable arrays
* @library /testlibrary /test/lib
- * @ignore 8151137
*
* @requires vm.flavor != "client"
*
* @run main/bootclasspath -XX:+UnlockDiagnosticVMOptions
* -Xbatch -XX:-TieredCompilation
--- 25,34 ----
*** 37,46 ****
--- 36,47 ----
* -XX:CompileCommand=dontinline,*Test::test*
* UnsafeGetStableArrayElement
*/
import jdk.internal.misc.Unsafe;
import jdk.internal.vm.annotation.Stable;
+ import jdk.test.lib.Platform;
+
import java.util.concurrent.Callable;
import static jdk.internal.misc.Unsafe.*;
import static jdk.test.lib.Asserts.*;
*** 217,226 ****
--- 218,231 ----
run(c, null, setDefaultAction);
Setter.reset();
}
public static void main(String[] args) throws Exception {
+ if (!Platform.isServer()) {
+ return; // not applicable to Client VM
+ }
+
// boolean[], aligned accesses
testMatched( Test::testZ_Z, Test::changeZ);
testMismatched(Test::testZ_B, Test::changeZ);
testMismatched(Test::testZ_S, Test::changeZ);
testMismatched(Test::testZ_C, Test::changeZ);
test/compiler/unsafe/UnsafeGetStableArrayElement.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File