RFR: 8263430: Uninitialized Method* variables after JDK-8233913
Coleen Phillimore
coleenp at openjdk.java.net
Thu Mar 11 16:27:07 UTC 2021
On Thu, 11 Mar 2021 14:20:52 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
>> src/hotspot/share/interpreter/linkResolver.cpp line 1153:
>>
>>> 1151: // superinterface.method, which explicitly does not check shadowing
>>> 1152: Klass* resolved_klass = link_info.resolved_klass();
>>> 1153: Method* resolved_method = NULL;
>>
>> Why would it complain about this one? resolved_method is going to get some value in the next 4 lines.
>
> Ah yes, it does not complain about this one. I just initialized all locals that were introduced in your original change. I can revert this hunk, if you want.
I don't think it matters that much. Go ahead and leave it. I'm glad it didn't complain about that.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2936
More information about the hotspot-dev
mailing list