RFR: JDK-8275865: Print deoptimization statistics in product builds [v2]
Tobias Hartmann
thartmann at openjdk.java.net
Thu Oct 28 06:42:20 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
Changes requested by thartmann (Reviewer).
test/hotspot/jtreg/runtime/logging/DeoptStats.java line 46:
> 44: public class DeoptStats {
> 45:
> 46: static class Value {
We use +4 space indentation for Java files.
test/hotspot/jtreg/runtime/logging/DeoptStats.java line 67:
> 65: verify(args);
> 66: }
> 67: else {
Line break should be removed.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6103
More information about the hotspot-compiler-dev
mailing list