RFR: 8333258: C2: high memory usage in PhaseCFG::insert_anti_dependences() [v2]

Emanuel Peter epeter at openjdk.org
Tue Jun 25 13:56:16 UTC 2024


On Tue, 25 Jun 2024 13:47:43 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>> Roland Westrelin has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
>> 
>>  - review
>>  - Merge branch 'master' into JDK-8333258
>>  - whitespaces
>>  - tests & fix
>
> src/hotspot/share/opto/gcm.cpp line 585:
> 
>> 583:     if (worklist_mem.at(j-1) != mem) {
>> 584:       // We're done with the uses of mem
>> 585:       return false;
> 
> Should this be `continue;` instead to make sure we scan all memory nodes?

Seems my old comments have disappeared, and with them Roland's answers.

Roland said duplicates are ok. But if you @vnkozlov are asking, then @rwestrel needs to make a comment about why we can early exit here ;)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19791#discussion_r1652864459


More information about the hotspot-compiler-dev mailing list