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

Move OopStorage inline definitions to an .inline.hpp

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • None
    • hotspot
    • None
    • gc
    • b01
    • generic
    • generic

      gc/shared/oopStorage.hpp contains the class definition for OopStorage, along with a lot of inline function and inner class definitions. It would be better to move the inline definitions to a .inline.hpp file. All of those inline definitions are related to iteration, and many clients don't use iteration. It might even be worthwhile having the following structure:

      (1) oopStorage.hpp - contains just class OopStorage.

      (2) oopStorage.inline.hpp - contains all the inline definitions
      presently in oopStorage.hpp, except for the ParState stuff.

      (3) oopStorageParState.inline.hpp - contains the ParState stuff.

      Inclusion of the ParState header by non-GC code should be suspect.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: