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

Specify exactly how padding should be presented to the linker

XMLWordPrintable

      In C it is possible to create a struct with extra padding such as:

      struct Foo {
          int x;
          int : 32;
          int y;
      };

      Which uses an unnamed bitfield to represent the padding.

      It is unclear how the layout for this struct should be constructed. Jextract uses PaddingLayouts, but this might not work on all linker implementations (such as fallback linker).

      We should specify and test cases like these in the JDK

            jvernee Jorn Vernee
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: