Integrated: 8260191: Do not include access.hpp in oop.hpp

Ioi Lam iklam at openjdk.java.net
Thu Jan 21 03:56:49 UTC 2021


On Wed, 20 Jan 2021 22:30:44 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> Please review this trivial change.
> 
> oop.h is included by 860 out of 1000 HotSpot .o files. It includes access.h for this member function declaration only:
> 
> template <DecoratorSet decorator> oop obj_field_access(int offset) const;
> 
> Instead of access.h, oop.h 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.
> 
> Tested with mach5: tier1, builds-tier2, builds-tier3, builds-tier4 and builds-tier5. Also locally: aarch64, arm, ppc64, s390, x86, and zero.

This pull request has now been integrated.

Changeset: 044bae0e
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/044bae0e
Stats:     3 lines in 2 files changed: 1 ins; 0 del; 2 mod

8260191: Do not include access.hpp in oop.hpp

Reviewed-by: kbarrett

-------------

PR: https://git.openjdk.java.net/jdk/pull/2172


More information about the hotspot-dev mailing list