RFR: 8282024: add EscapeAnalysis statistics under PrintOptoStatistics [v14]
Xin Liu
xliu at openjdk.java.net
Sun May 22 03:08:59 UTC 2022
On Sat, 21 May 2022 15:55:44 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> Got it. Thank for explaining - you simply used data from last iteration.
>> I think you can do similar with much less complexity if you used data from **first** iteration and current code change:
>>
>> void ConnectionGraph::escape_state_statistics(GrowableArray<JavaObjectNode*>& java_objects_worklist) {
>> if (!PrintOptoStatistics || (_invocation > 0)) { // Collect data only for first invocation
>> return;
>> }
>> for (int next = 0; next < java_objects_worklist.length(); ++next) {
>
> You need to revert `escape_state_statistics` back to non static for this of cause.
so you use the snapshot of first iteration. We assume Iterative EA can elide some non-escaped objects but can't change any object's category. I think it is correct and indeed much simpler!
-------------
PR: https://git.openjdk.java.net/jdk/pull/8019
More information about the hotspot-compiler-dev
mailing list