RFR(M): 8199852: Print more information about class loaders in LinkageErrors.
Lois Foltan
lois.foltan at oracle.com
Wed Mar 21 12:21:35 UTC 2018
On 3/21/2018 7:55 AM, Lindenmaier, Goetz wrote:
> Hi,
>
> ClassLoaders have a field containing a name since Java 9.
>
> This change improves some of the messages of LinkageErrors to
> print the name of the loader involved, as well as the parent of the loader.
> This simplifies tracking down the component causing an error in large
> Java systems.
>
> Please review:
> http://cr.openjdk.java.net/~goetz/wr18/8199852-exMsg_Linkage/01/index.html
>
> I ran this through all our tests (jck, jtreg, spec etc). I will run it through submit-hs
> (or jdk/submit) once it's reviewed.
>
> Best regards,
> Goetz.
>
>
>
>
Hi Goetz,
This looks promising and something that we started to do in the JDK 9
time frame. Instead of adding the new method
java_lang_ClassLoader::describe_external() can you possible use/improve
upon Klass::class_loader_and_module_name() in order to avoid duplicate code?
Thanks,
Lois
More information about the hotspot-runtime-dev
mailing list