8156124: Update compiler/unsafe/UnsafeGetConstantField after JDK-8148518 is fixed

Removed workaround added for 8148518.

Reviewed-by: vlivanov
This commit is contained in:
Jamsheed Mohammed C M 2016-05-06 05:57:43 -07:00
parent 28efea6754
commit 88cbbd634e

View File

@ -147,10 +147,7 @@ public class UnsafeGetConstantField {
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");