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

Vladimir Kozlov kvn at openjdk.org
Fri Aug 19 23:25:34 UTC 2022


On Fri, 19 Aug 2022 23:16:15 GMT, Igor Veresov <iveresov at openjdk.org> wrote:

> Many of these are called in pretty hot paths in `CompilationPolicy`. That is when an interpreter or a c1-compiled method is invoking the policy on method invocations and back branches. So, I would like to keep these inline.
> 
> Could we move these to `compilerDefinitions.inline.hpp` and include it only where it's necessary?

Is `CompilationPolicy` code hot? It triggers only on counters overflow. It even less hot when methods are compiled by C2.
But I am fine if moving them to `compilerDefinitions.inline.hpp` reduce VM build time too.

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

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


More information about the hotspot-compiler-dev mailing list