RFR 8212937: Parent class loader may not have a referred ClassLoaderData instance when obtained in Klass::class_in_module_of_loader

Martin Balao mbalao at redhat.com
Wed Oct 24 19:58:44 UTC 2018


Hi,

Can I have a review for JDK-8212937 [1]?

Webrev.00:

 * http://cr.openjdk.java.net/~mbalao/webrevs/8212937/8212937.webrev.00/
 * http://cr.openjdk.java.net/~mbalao/webrevs/8212937/8212937.webrev.00.zip

By obtaining the ClassLoaderData instance through a call to
SystemDictionary::register_loader, we make sure that either an existing
instance is obtained or a new one created. This same idiom has already been
used in other places where there are no guarantees that a previous
ClassLoaderData instance exists for a given class loader. See futher
information in JDK-8212937 ticket [1].

Thanks,
Martin.-

--
[1] - https://bugs.openjdk.java.net/browse/JDK-8212937


More information about the hotspot-dev mailing list