RFR: 8264731: Introduce InstanceKlass::method_at_itable_or_null() [v2]

Coleen Phillimore coleenp at openjdk.java.net
Tue Apr 6 13:21:26 UTC 2021


On Tue, 6 Apr 2021 13:02:38 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

>> src/hotspot/share/oops/instanceKlass.cpp line 3179:
>> 
>>> 3177: 
>>> 3178: Method* InstanceKlass::method_at_itable_or_null(InstanceKlass* holder, int index, bool& itable_entry_found) {
>>> 3179:   klassItable itable(this);
>> 
>> I think  you need a ResourceMark before this.
>
> Can you elaborate, please, why you think so? 
> I don't see anything in `klassItable` which may allocate in the resource arena.

oh, never mind. Somebody fixed this a long time ago.

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

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


More information about the hotspot-runtime-dev mailing list