8156124: Update compiler/unsafe/UnsafeGetConstantField after JDK-8148518 is fixed
authorjcm
Fri, 06 May 2016 05:57:43 -0700
changeset 38243 f6cedfdd4721
parent 38242 c9013a328fe2
child 38244 63cd9f129814
8156124: Update compiler/unsafe/UnsafeGetConstantField after JDK-8148518 is fixed Summary: Removed workaround added for 8148518. Reviewed-by: vlivanov
hotspot/test/compiler/unsafe/UnsafeGetConstantField.java
--- a/hotspot/test/compiler/unsafe/UnsafeGetConstantField.java	Fri May 06 05:42:36 2016 -0700
+++ b/hotspot/test/compiler/unsafe/UnsafeGetConstantField.java	Fri May 06 05:57:43 2016 -0700
@@ -147,10 +147,7 @@
             if (!hasDefaultValue && (stable || g.isFinal())) {
                 Asserts.assertEQ(t.value, test.testDirect(),
                         "direct read doesn't return prev value");
-                // fails for getCharUnaligned due to JDK-8148518
-                if (!(t == JavaType.C && "Unaligned".equals(postfix))) {
-                    Asserts.assertEQ(test.testDirect(), test.testUnsafe());
-                }
+                Asserts.assertEQ(test.testDirect(), test.testUnsafe());
             } else {
                 Asserts.assertEQ(t.defaultValue, test.testDirect(),
                         "direct read doesn't return default value");