Mercurial > hg > graal-jvmci-8
changeset 19425:b6d8deed3fd5
added (commented out) code for printing a stack trace as part of -verbose:class that can be used when investigating why classes are loaded
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 17 Feb 2015 14:07:13 +0100 |
parents | 5779b6771043 |
children | dd8989d5547f |
files | src/share/vm/classfile/classFileParser.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.cpp Mon Feb 16 15:41:46 2015 -0800 +++ b/src/share/vm/classfile/classFileParser.cpp Tue Feb 17 14:07:13 2015 +0100 @@ -4147,6 +4147,9 @@ tty->print("[Loaded %s from %s]\n", this_klass->external_name(), InstanceKlass::cast(class_loader->klass())->external_name()); } + // uncomment and use -verbose:class to investigate + // why each class is loaded + JavaThread::current()->print_stack_on(tty); } if (TraceClassResolution) {