Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903804

Jextract bindings should not have hardwired offset constants

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • tools

      As part of the jextract rewrite, jextract now hardwires offsets to struct fields in the bindings it generates. While this allows smoother startup, it is very inconvenient: if a struct layout needs to be hand-edited (e.g. to enable packing), all the offsets would become invalid.

      It is recommended to switch to a scheme where instead of hardwired offsets, we just compute the offsets using the layout API (e.g. `MemoryLayout::byteOffset(PathElement...)`.

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: