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

Linker fails to handle a well formatted layout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Withdrawn
    • Icon: P3 P3
    • None
    • 22, 23, 24
    • core-libs
    • None

      The Linker will not handle certain layouts that it should:

      Reproduce:

          @Test
          public void alignedByInitialPadding() {
              Linker linker = Linker.nativeLinker();
              var struct = MemoryLayout.structLayout(
                      MemoryLayout.paddingLayout(Integer.BYTES),
                      JAVA_INT);
              var fd = FunctionDescriptor.of(struct, struct, struct);
              linker.downcallHandle(fd);
          }

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

              Created:
              Updated:
              Resolved: