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

Do not include access.hpp in oop.hpp

XMLWordPrintable

    • b07

      oop.hpp is included by 860 out of 1000 HotSpot .o files. It includes access.hpp for this member function declaration only:

        template <DecoratorSet decorator>
        oop obj_field_access(int offset) const;

      Instead of access.hpp, oop.hpp should include accessDecorators.hpp. This avoids including lots of header files from the Access API.

      HotSpot build time is reduced by about 0.5% for this single-line change.

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: