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

Unaligned memory access in Bits.c

    Details

    • Subcomponent:
    • Resolved In Build:
      b108
    • CPU:
      x86_64
    • OS:
      linux
    • Verification:
      Verified

      Backports

        Description

        This is a follow-on issue to JDK-8140630. When devkit was updated to version 4.9.2 on Linux-x86_64, the JDK test java/nio/Buffer/Basic.java crashed with a SIG_SEGV in Mach5 testing. This is a tier 1 failure.

        It was found that compiling src/java.base/share/native/libjava/Bits.c using normal (-O2) optimization instead of high (-O3) resolved the immediate problem. The concern however is that there is an underlying pattern in the optimized compiled code which might manifest itself elsewhere. It would be better to examine the problem in detail in order to find the root cause and hopefully a better solution.

          Attachments

          1. bits.c
            0.3 kB
          2. bits.h
            0.1 kB
          3. hellobits.c
            0.2 kB
          4. Makefile
            0.5 kB

            Issue Links

              Activity

                People

                • Assignee:
                  mikael Mikael Vidstedt
                  Reporter:
                  bpb Brian Burkhalter
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  18 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: