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

Remove includes of oop.inline.hpp from .hpp files

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b53

        Our inline.hpp files should preferably only be included from .cpp files or other .inline.hpp files. When they are included in .hpp files, the include dependency of the implementation spreads to unrelated parts of the code base, and it's easy to get circular dependencies.

        This guide line is documented on:
        https://wiki.openjdk.java.net/display/HotSpot/StyleGuide#Files

        oop.inline.hpp is one of the more problematic files, and I propose a patch to get rid of all inclusions of oop.inline.hpp from other .hpp files.

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

                Created:
                Updated:
                Resolved: