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

StackAlignmentInBytes not honored for compiled native methods

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: hs15
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Crashes have been observed using SoyLatte and the BSD port of OpenJDK on Mac OS X with applications involving many native calls, specifically graphical programs. Various parties have identified the reason as misalignment of the stack; Mac OS X requires 16-byte alignment of stack frames even on 32-bit platforms. While StackAlignmentInBytes is defined as 16 in 32-bit x86 HotSpot, the compiled native wrappers for frequently invoked JNI methods are not appropriately rounding up the frame size. It appears that this is the only place in the VM where the stack alignment is not being obeyed.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                xlu Xiaobin Lu (Inactive)
                Reporter:
                kbr Kenneth Russell (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: