Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8156124

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

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b120

      Description

      diff --git a/test/compiler/unsafe/UnsafeGetConstantField.java b/test/compiler/unsafe/UnsafeGetConstantField.java
      --- a/test/compiler/unsafe/UnsafeGetConstantField.java
      +++ b/test/compiler/unsafe/UnsafeGetConstantField.java
      @@ -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");

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jcm Jamsheed C M
                Reporter:
                vlivanov Vladimir Ivanov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: