use of com.ibm.j9ddr.vm29.pointer.generated.J9ClassLoaderPointer in project openj9 by eclipse.
the class CheckClassLoaders method print.
@Override
public void print() {
try {
GCClassLoaderIterator classLoaderIterator = GCClassLoaderIterator.from();
getReporter().println(String.format("<gc check: Start scan classLoaderBlocks (%s)>", formatPointer(getJavaVM().classLoaderBlocks())));
while (classLoaderIterator.hasNext()) {
J9ClassLoaderPointer classLoader = classLoaderIterator.next();
getReporter().println(String.format(" <classLoader (%s)>", formatPointer(classLoader)));
getReporter().println(String.format(" <flags=%d, classLoaderObject=%s>", classLoader.gcFlags().longValue(), formatPointer(classLoader.classLoaderObject())));
}
getReporter().println(String.format("<gc check: End scan classLoaderBlocks (%s)>", formatPointer(getJavaVM().classLoaderBlocks())));
} catch (CorruptDataException e) {
// TODO: handle exception
}
}
Aggregations