RFR: 8292691: Move unnecessary inline methods out of compilerDefinitions.hpp

Igor Veresov iveresov at openjdk.org
Fri Aug 19 23:32:03 UTC 2022


On Fri, 19 Aug 2022 21:44:39 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> Many of the inline functions in compilerDefinitions.hpp don't seem to be performance critical. They should be moved into compilerDefinitions.cpp to improve C++ compilation time
> 
> This reduces the inclusion of the following headers from 762 to 319:
> 
> - compiler_globals.hpp
> - c1_globals.hpp
> - c2_globals.hpp
> - jvmci_globals.hpp

It is reasonably hot. The interpreter calls it for every 128th invocation of a method and every 1024th back branch in a particular method. C1 calls it every 1024th invocation and 8192th back branch.

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

PR: https://git.openjdk.org/jdk/pull/9953


More information about the hotspot-compiler-dev mailing list