RFR: 8261137: Optimization of Box nodes in uncommon_trap [v4]
Wang Huang
whuang at openjdk.java.net
Mon Mar 1 07:29:47 UTC 2021
On Wed, 10 Feb 2021 21:55:27 GMT, Xin Liu <xliu at openjdk.org> wrote:
>> Wang Huang has updated the pull request incrementally with one additional commit since the last revision:
>>
>> delete useless line
>
> src/hotspot/share/opto/callGenerator.cpp line 588:
>
>> 586: Node* sobj = new SafePointScalarObjectNode(gvn.type(res)->isa_oopptr(),
>> 587: #ifdef ASSERT
>> 588: (AllocateNode*)call,
>
> You can use call->isa_Allocate(); It utilizes node's ad-hoc RTTI to do type casting.
OK. I have done that.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2401
More information about the hotspot-compiler-dev
mailing list