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

StackAlignmentInBytes not honored for compiled native methods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • hs15
    • 7
    • hotspot
    • None
    • b01
    • generic
    • generic

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: