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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 23
    • 23
    • 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.

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

              Created:
              Updated:
              Resolved: