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

Remove MetaspaceClosure::FLAG_MASK

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b13

      Description

      https://github.com/openjdk/jdk/blob/75a06421e596b0e0006120a13836ec65a3ab9d46/src/hotspot/share/memory/metaspaceClosure.hpp#L130

          address obj() const {
            // In some rare cases (see CPSlot in constantPool.hpp) we store some flags in the lowest
            // 2 bits of a MetaspaceObj pointer. Unmask these when manipulating the pointer.
            uintx p = (uintx)*mpp();
            return (address)(p & (~FLAG_MASK));
          }

      The above was needed only to support CPSlot. Now that CPSlot is removed in JDK-8272107, we can remove MetaspaceClosure::FLAG_MASK and MetaspaceClosure::flag_bits()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iklam Ioi Lam
              Reporter:
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: