Refactor code for AOT cache pointer compression

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: hotspot

      AOT cache uses pointer compression to store 64-bit pointers in 32 bits. Currently the compression algorithm is simply (base + narrowPtr). However, in JDK-8376125, we may change it to (base + narrowPtr << 3).

      This RFE changed the encoded pointer from an u4 to

          enum class narrowPtr : u4;

      This allows us better tracking of where the encoded pointers are stored. Also, we can better distinguish between byte offsets vs encoded pointers -- they currently have the same numerical values but after JDK-8376125, they will be different.

            Assignee:
            Unassigned
            Reporter:
            Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: