8156124: Update compiler/unsafe/UnsafeGetConstantField after JDK-8148518 is fixed
Summary: Removed workaround added for 8148518.
Reviewed-by: vlivanov
--- 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");