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

Implement return value normalization in Java

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • repo-panama
    • core-libs

      Current downcall stubs will normalize return values of types bool, char, short and on aarch64 even int.

      This is baking in some knowledge about the native ABI, as it assumes the normalization is needed.

      This normalization could be implemented as a Binding operator through CallArranger instead. By erasing return values to `int` or `long`, and doing the normalization on the Java side.

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

              Created:
              Updated:
              Resolved: