RFR: JDK-8275865: Print deoptimization statistics in product builds [v2]
Vladimir Kozlov
kvn at openjdk.java.net
Wed Oct 27 16:14:17 UTC 2021
On Wed, 27 Oct 2021 11:43:47 GMT, Volker Simonis <simonis at openjdk.org> wrote:
>> Deoptimization statistics are already gathered in product builds but for some (probably historical) reasons aren't printed to the VM/Compiler log. These statics can be useful when analyzing the reasons for deoptimization and frequent recompilations.
>>
>> Because the statistics are already collected anyway, printing them at VM-exit if either `-XX:+LogCompilation` or `-XX:+LogVMOutput` are set won't introduce any runtime overhead.
>
> Volker Simonis has updated the pull request incrementally with one additional commit since the last revision:
>
> Fix C1 case which doesn't print deoptimization statistics
src/hotspot/share/runtime/java.cpp line 354:
> 352: }
> 353:
> 354: #if defined(COMPILER2) || defined(INCLUDE_JVMCI)
There is shorter version: `#if COMPILER2_OR_JVMCI`
Otherwise changes are good.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6103
More information about the hotspot-compiler-dev
mailing list