RFR: 8261137: Optimization of Box nodes in uncommon_trap [v6]

Vladimir Ivanov vlivanov at openjdk.java.net
Wed Mar 10 17:48:07 UTC 2021


On Wed, 10 Mar 2021 11:28:18 GMT, Wang Huang <whuang at openjdk.org> wrote:

>> src/hotspot/share/opto/callGenerator.cpp line 573:
>> 
>>> 571: 
>>> 572: #ifndef PRODUCT
>>> 573:     if (PrintEliminateAllocations && safepoints.size() > 0) {
>> 
>> Strictly speaking, `PrintEliminateAllocations` is EA-specific flag.
>> Not sure it has to cover `EliminateAutoBox`/`AggressiveUnboxing`.
>
> I think it is just like  https://github.com/openjdk/jdk/blob/master/src/hotspot/share/opto/macro.cpp#L1158
> or we add a new option here?

I missed that `PrintEliminateAllocations` is used in `PhaseMacroExpand::eliminate_boxing_node()`. 

Looks good then.

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

PR: https://git.openjdk.java.net/jdk/pull/2401


More information about the hotspot-compiler-dev mailing list