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

Reduce jextract generated artifact size.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • repo-panama
    • tools

      A lot of noise is often included in jextract artifacts, because libraries depend on system headers, which are then transitively included in full.

      To reduce the size of the jextract artifacts, after some discussing: https://mail.openjdk.java.net/pipermail/panama-dev/2019-March/004828.html & https://mail.openjdk.java.net/pipermail/panama-dev/2019-March/004932.html

      We have come up with the following plan.

      1.) Start from a root set of header files H, which contains all headers, filtered by some patterns passed to --include-headers & --exclude-headers.

      2.) Include anything found in the headers in H.

      3.) Also include elements (but not entire headers) that are required by something appearing in H (based on dependency analysis).

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

              Created:
              Updated:
              Resolved: