8156124: Update compiler/unsafe/UnsafeGetConstantField after JDK-8148518 is fixed
Removed workaround added for 8148518. Reviewed-by: vlivanov
This commit is contained in:
parent
28efea6754
commit
88cbbd634e
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user