Mercurial > hg > truffle
changeset 19459:18e21237807b
put the code for printing a stack trace as part of -verbose:class behind the WizardMode flag
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 17 Feb 2015 20:43:03 +0100 |
parents | a58dacb6ad9a |
children | cdf80eaa38ca |
files | src/share/vm/classfile/classFileParser.cpp |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.cpp Tue Feb 17 15:32:54 2015 +0100 +++ b/src/share/vm/classfile/classFileParser.cpp Tue Feb 17 20:43:03 2015 +0100 @@ -4147,9 +4147,10 @@ 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 (WizardMode) { + // useful when investigating why a class is loaded + JavaThread::current()->print_stack_on(tty); + } } if (TraceClassResolution) {