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

Unsafe.getCharUnaligned() loads aren't folded in case of -XX:-UseUnalignedAccesses

    XMLWordPrintable

    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:
      b108

      Description

      working on JDK-8134102 I've slightly improved hotspot/test/compiler/unsafe/UnsafeGetConstantField.java test: now it also checks that even if field's value is changed, testDirect and testUnsafe return the previous value.
      those changes revealed that Unsafe.getCharUnaligned() loads for @Stable and final fields aren't folded in case JVM is started w/ -XX:-UseUnalignedAccesses

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vlivanov Vladimir Ivanov
              Reporter:
              iignatyev Igor Ignatyev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: