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

Generational ZGC: Remove the unused method ZPointer::set_remset_bits

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 23
    • 23
    • hotspot
    • gc
    • b17

      The method `ZPointer::set_remset_bits`, shown below, is unused now. I think it is unnecessary because it seems that we don't need to set two remembered bits at the same time. It is good to remove this method.

      ```
      inline zpointer ZPointer::set_remset_bits(zpointer ptr) {
        uintptr_t raw_addr = untype(ptr);
        assert(raw_addr != 0, "raw nulls should have been purged in promotion to old gen");
        raw_addr |= ZPointerRemembered0 | ZPointerRemembered1;
        return to_zpointer(raw_addr);
      }
      ```

            gli Guoxiong Li
            gli Guoxiong Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: