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

HotSpot Style Guide should permit alignas

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 16
    • Fix Version/s: tbd
    • Component/s: hotspot

      Description

      Add alignas to the permitted features set, but only for variables, not for classes. Classes have the problem that dynamic allocation is unaware of alignment restrictions. (That's fixed in C++17. Though we might be able to add it ourselves for our allocators.)

      Update ATTRIBUTE_ALIGNMENT to use alignas. We might deprecate the use of the macro, but changing its implementation quickly and cleanly applies the feature where the macro is being used.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: