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

Reduce calls to the GC specific object visitors in oopDesc

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b60

        Some of our GCs have GC specific entry points and code placed in the oopDesc and Klass files. They are used to implement marking, scavenging and adjusting of oops in the the objects. See the following functions:

        Mark Sweep:
          void follow_contents(void);
          int adjust_pointers();

        Parallel Scavenge
          void push_contents(PSPromotionManager* pm);

        Parallel Old
          void update_contents(ParCompactionManager* cm);
          void follow_contents(ParCompactionManager* cm);

        With JDK-8075955 we'll start to use parts of the oop_oop_iterate framework to implement these functions, and as a preparation patch I'd like to minimize the number of places where these functions are directly called from Mark Sweep, Parallel Scavenge and Parallel Old.

        The proposal is to add thin wrapper functions to the three GCs, and let these wrappers be the only callers of the functions above.

              stefank Stefan Karlsson
              stefank Stefan Karlsson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: