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

Memory access var handles are never called with exact types

    Details

    • Type: Bug
    • Status: New
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools

      Description

      Due to the fact that the memory access API is defined in its own incubator module, we had to split certain classes (most notably MemoryAddress) across multiple modules. This means that e.g. the code in java.base refers to the MemoryAddressProxy interface, which is a private type in java.base exported to jdk.incubator.foreign, while the user code will refer to MemoryAddress.

      This type mismatch will require slow asType() adaptation whenever no matching var handle guard is found, which then will cause great performance issues.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mcimadamore Maurizio Cimadamore
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: