Generational ZGC: Move the methods forwarding_[index|find|insert] from zRelocate.cpp to ZForwarding

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 23
    • Affects Version/s: 23
    • Component/s: hotspot
    • gc
    • b19

      The first parameter of the methods `zRelocate.cpp/forwarding_[index|find|insert]` is always `ZForwarding* forwarding`. Actually, these methods should be placed in the class `ZForwarding` so that the first parameter can be added by the compiler and it can improve the encapsulation.

      But the non-generational ZGC can't make such a move because the method signatures may be duplicate.

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

              Created:
              Updated:
              Resolved: