RFR: 8282024: add EscapeAnalysis statistics under PrintOptoStatistics [v9]
Cesar Soares
duke at openjdk.java.net
Thu May 19 23:42:56 UTC 2022
On Thu, 19 May 2022 23:22:41 GMT, aamarsh <duke at openjdk.java.net> wrote:
>> Escape Analysis and Scalar Replacement statistics were added when the -XX:+PrintOptoStatistics flag is set. All code is placed in `#ifndef Product` block, so this code is only run when creating a debug build. Using renaissance benchmark I ran a few tests to confirm that numbers were printing correctly. Below is an example run:
>>
>>
>> No escape = 317, Arg escape = 118, Global escape = 1995 (EA executed in 11.71 seconds) ** EA stats might be slightly off since objects might be double counted due to iterative EA **
>> Objects scalar replaced = 201, Monitor objects removed = 23, GC barriers removed = 50, Memory barriers removed = 224
>
> aamarsh has updated the pull request incrementally with one additional commit since the last revision:
>
> removed iterative fix and refactored
Some NITs.
src/hotspot/share/opto/compile.cpp line 2179:
> 2177: }
> 2178: bool progress;
> 2179:
NIT: empty line.
src/hotspot/share/opto/compile.cpp line 2210:
> 2208: // by removing some allocations and/or locks.
> 2209: } while (progress);
> 2210:
NIT: empty line.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8019
More information about the hotspot-compiler-dev
mailing list