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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • b108

      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

            vlivanov Vladimir Ivanov
            iignatyev Igor Ignatyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: