8199852: Print more information about class loaders in LinkageErrors

Reviewed-by: dholmes, lfoltan, gtriantafill
This commit is contained in:
Goetz Lindenmaier 2018-05-07 11:38:21 +02:00
parent 5f40eda733
commit 72a2ac8b8b
28 changed files with 660 additions and 97 deletions

View file

@ -1321,6 +1321,12 @@ class java_lang_ClassLoader : AllStatic {
// Debugging
friend class JavaClasses;
friend class ClassFileParser; // access to number_of_fake_fields
// Describe ClassLoader for exceptions, tracing ...
// Prints "<name>" (instance of <classname>, child of "<name>" <classname>).
// If a classloader has no name, it prints <unnamed> instead. The output
// for well known loaders (system/platform) is abbreviated.
static const char* describe_external(const oop loader);
};