RFR: JDK-8276039: Incomplete resolution operator for set_init_lock in javaClasses.cpp

David Holmes dholmes at openjdk.java.net
Wed Oct 27 05:32:06 UTC 2021

On Wed, 27 Oct 2021 05:20:37 GMT, Mikael Vidstedt <mikael at openjdk.org> wrote:

>> Please review,
>>   I have no idea why this problem has not been encountered in compilation, it is obvious the usage of resolution operator :: is not complete and wrong.
>>  Tests: mach5 tier1, tier4
>> Thanks
>> Yumin
> That's funny. I guess `java_lang_Class:` becomes a label and set_init_lock is local to the class so resolution works anyway.

@vidmik is right - `java_lang_Class:` is just a label on the call to `set_init_lock`. No resolution is needed so the right fix here is to delete the "label" and just leave `set_init_lock`.


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

More information about the hotspot-runtime-dev mailing list