Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8317545 AIX PPC64: Implementation of Foreign Function & Memory API
  3. JDK-8346869

[AIX] Add regression test for handling 4 Byte aligned doubles in structures

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • None
    • client-libs
    • b06
    • aix

      AIX has different alignment rules regarding double structure members which are not the first member.
      AIX supports "#pragma align (natural)" which we use since JDK-8318175. That makes the structure layouts compatible with linux.
      AIX also supports "#pragma align (power)" which is the default. If this alignment mode is used double structure members which are not the first member are only 4 Byte aligned.
      The modes are also described here: https://www.ibm.com/docs/en/xl-c-and-cpp-aix/16.1?topic=data-using-alignment-modes

      JDK-8317545 supports both modes, but we have no test for the "#pragma align (power)" mode, yet.

            mdoerr Martin Doerr
            mdoerr Martin Doerr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: