changeset 11188:2ec94e2b7659

8156124: Update compiler/unsafe/UnsafeGetConstantField after JDK-8148518 is fixed Summary: Removed workaround added for 8148518. Reviewed-by: vlivanov
author jcm
date Fri, 06 May 2016 05:57:43 -0700
parents e09c7128cc52
children 39909356cfb4
files test/compiler/unsafe/UnsafeGetConstantField.java
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/compiler/unsafe/UnsafeGetConstantField.java	Fri May 06 05:42:36 2016 -0700
+++ b/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");