Integrated: 8260306: Do not include osThread.hpp in thread.hpp
Ioi Lam
iklam at openjdk.java.net
Sun Jan 24 02:43:45 UTC 2021
On Fri, 22 Jan 2021 18:02:10 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> thread.hpp is a popular header file (included by 856 out of 1000 HotSpot.o file), so we should try to minimize what files are included by thread.hpp.
>
> We can replace the inclusion of osThread.hpp with a forward declaration of the OSThread class.
>
> This reduces the number of .o files that include osThread.hpp to 42.
>
> 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: 535c2927
Author: Ioi Lam <iklam at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/535c2927
Stats: 34 lines in 20 files changed: 21 ins; 1 del; 12 mod
8260306: Do not include osThread.hpp in thread.hpp
Reviewed-by: coleenp, lfoltan
-------------
PR: https://git.openjdk.java.net/jdk/pull/2198
More information about the hotspot-dev
mailing list