On Thu, 23 Apr 2026 17:20:33 GMT, Vladimir Kozlov <[email protected]> wrote:

>>> The issue there has to do with escape analysis getting "stuck" on such a 
>>> big IR.
>> 
>> @mcimadamore  what EA message gives in such case? Is it time limit or a lot 
>> of EA iterations? Or something else?
>> Or it simple can't eliminate hot allocations?
>
>> @vnkozlov EA gets stuck at `ConnectionGraph::split_unique_types` because 
>> there are too many scalar replaceable allocations.
> 
> What do you mean "stuck"? Is it looping there for very long time/infinitely? 
> Or it bail out after some time?

> @vnkozlov It loops there for a very long time. I believe it is because in 
> this scenario, the complexity of `split_unique_types` is quadratic with 
> respect to the number of allocations.

Okay, then we need to add `EscapeAnalysisTimeout` check there and restart 
compilation without EA.

Are all those allocations scalar replaceable?

May be (new REF) scalar replace allocations only on hot path.  Or give up 
running `split_unique_types`  with large number of   allocations. Or other 
approach limit time in `split_unique_types`.

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

PR Comment: https://git.openjdk.org/jdk/pull/30874#issuecomment-4306998419

Reply via email to