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

[TESTBUG] UnsafeGetConstantField.testUnsafeGetFieldUnaligned fails w/ -XX:-UseUnalignedAccesses in -Xcomp mode

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b114

      Description

      ----------messages:(3/616)----------
      command: main -XX:+UnlockDiagnosticVMOptions -Xbatch -XX:-TieredCompilation -XX:+FoldStableValues -XX:CompileCommand=dontinline,UnsafeGetConstantField.checkGetAddress() -XX:CompileCommand=dontinline,*.test* -XX:-UseUnalignedAccesses compiler.unsafe.UnsafeGetConstantField

      type=Int flags=0 stable=true default=false post=Unaligned
      dumping test class to /export/home/aurora/sandbox/results/workDir/compiler/unsafe/UnsafeGetConstantField/./TestIntUnaligned__f=0__s=true__d=false.class
      java.lang.RuntimeException: (assert failed: -1 == 0)
      at jdk.test.lib.Asserts.error(Asserts.java:447)
      at jdk.test.lib.Asserts.assertTrue(Asserts.java:374)
      at jdk.test.lib.Asserts.assertEquals(Asserts.java:169)
      at jdk.test.lib.Asserts.assertEquals(Asserts.java:152)
      at jdk.test.lib.Asserts.assertEQ(Asserts.java:134)
      at compiler.unsafe.UnsafeGetConstantField.runTest(UnsafeGetConstantField.java:151)
      at compiler.unsafe.UnsafeGetConstantField.testUnsafeGetFieldUnaligned(UnsafeGetConstantField.java:125)
      at compiler.unsafe.UnsafeGetConstantField.main(UnsafeGetConstantField.java:80)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: