Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8264644: Add PrintClassLoaderDataGraphAtExit to print the detailed CLD graph #3323

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -942,15 +942,15 @@ class PrintKlassClosure: public KlassClosure {
};
void ClassLoaderData::print_on(outputStream* out) const {
ResourceMark rm;
out->print_cr("ClassLoaderData(" PTR_FORMAT ")", p2i(this));
out->print_cr("ClassLoaderData(" INTPTR_FORMAT ")", p2i(this));
out->print_cr(" - name %s", loader_name_and_id());
if (!_holder.is_null()) {
out->print (" - holder ");
_holder.print_on(out);
out->print_cr("");
}
out->print_cr(" - class loader " PTR_FORMAT, p2i(_class_loader.ptr_raw()));
out->print_cr(" - metaspace " PTR_FORMAT, p2i(_metaspace));
out->print_cr(" - class loader " INTPTR_FORMAT, p2i(_class_loader.ptr_raw()));
out->print_cr(" - metaspace " INTPTR_FORMAT, p2i(_metaspace));
out->print_cr(" - unloading %s", _unloading ? "true" : "false");
out->print_cr(" - class mirror holder %s", _has_class_mirror_holder ? "true" : "false");
out->print_cr(" - modified oops %s", _modified_oops ? "true" : "false");
@@ -969,17 +969,17 @@ void ClassLoaderData::print_on(outputStream* out) const {
PrintKlassClosure closure(out);
((ClassLoaderData*)this)->classes_do(&closure);
out->print_cr(" }");
out->print_cr(" - packages " PTR_FORMAT, p2i(_packages));
out->print_cr(" - module " PTR_FORMAT, p2i(_modules));
out->print_cr(" - unnamed module " PTR_FORMAT, p2i(_unnamed_module));
out->print_cr(" - dictionary " PTR_FORMAT, p2i(_dictionary));
out->print_cr(" - packages " INTPTR_FORMAT, p2i(_packages));
out->print_cr(" - module " INTPTR_FORMAT, p2i(_modules));
out->print_cr(" - unnamed module " INTPTR_FORMAT, p2i(_unnamed_module));
out->print_cr(" - dictionary " INTPTR_FORMAT, p2i(_dictionary));
if (_jmethod_ids != NULL) {
out->print (" - jmethod count ");
Method::print_jmethod_ids_counts(this, out);
Method::print_jmethod_ids_count(this, out);
out->print_cr("");
}
out->print_cr(" - deallocate list " PTR_FORMAT, p2i(_deallocate_list));
out->print_cr(" - next CLD " PTR_FORMAT, p2i(_next));
out->print_cr(" - deallocate list " INTPTR_FORMAT, p2i(_deallocate_list));
out->print_cr(" - next CLD " INTPTR_FORMAT, p2i(_next));
}
#endif // PRODUCT

@@ -2255,7 +2255,7 @@ bool Method::is_valid_method(const Method* m) {
}

#ifndef PRODUCT
void Method::print_jmethod_ids_counts(const ClassLoaderData* loader_data, outputStream* out) {
void Method::print_jmethod_ids_count(const ClassLoaderData* loader_data, outputStream* out) {
out->print("%d", loader_data->jmethod_ids()->count_methods());
}
#endif // PRODUCT
@@ -822,7 +822,7 @@ class Method : public Metadata {

// Clear methods
static void clear_jmethod_ids(ClassLoaderData* loader_data);
static void print_jmethod_ids_counts(const ClassLoaderData* loader_data, outputStream* out) PRODUCT_RETURN;
static void print_jmethod_ids_count(const ClassLoaderData* loader_data, outputStream* out) PRODUCT_RETURN;

// Get this method's jmethodID -- allocate if it doesn't exist
jmethodID jmethod_id();
ProTip! Use n and p to navigate between commits in a pull request.