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

Wang Huang whuang at openjdk.java.net
Sat Feb 27 07:10:42 UTC 2021


On Wed, 24 Feb 2021 07:14:08 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

>> Wang Huang has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   add debuginfo optimization
>
> src/hotspot/share/opto/callGenerator.cpp line 587:
> 
>> 585:       ciInstanceKlass* klass = call->as_CallStaticJava()->method()->holder();
>> 586:       int n_fields = klass->nof_nonstatic_fields();
>> 587:       assert(n_fields == 1, "the klass must be an auto-boxing klass");
> 
> This code can be put in `ifdef ASSERT` and `n_fields` below can be replaced by 1.

These codes are similar to https://github.com/openjdk/jdk/pull/853#discussion_r522967411 , so I put `assert` here.

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

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


More information about the hotspot-compiler-dev mailing list