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

Add a factory to MemoryLayout that can created internally aligned structs and unions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • None
    • core-libs

      The current `MemoryLayout::structLayout` and `MemoryLayout::unionLayout` require the provided members to be well aligned (i.e. may require internal padding to be explicitly provided) up front and does not insert any additional trailing padding potentially necessary if the returned struct/union is to be used in a sequence layout.

      We should add new factories that provide C-like factories that automatically inserts padding (inter and trailing) if needed.

            pminborg Per-Ake Minborg
            pminborg Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: