Mercurial > hg > truffle
comparison src/share/vm/classfile/classFileParser.cpp @ 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 | b6d8deed3fd5 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
19458:a58dacb6ad9a | 19459:18e21237807b |
---|---|
4145 } | 4145 } |
4146 } else { | 4146 } else { |
4147 tty->print("[Loaded %s from %s]\n", this_klass->external_name(), | 4147 tty->print("[Loaded %s from %s]\n", this_klass->external_name(), |
4148 InstanceKlass::cast(class_loader->klass())->external_name()); | 4148 InstanceKlass::cast(class_loader->klass())->external_name()); |
4149 } | 4149 } |
4150 // uncomment and use -verbose:class to investigate | 4150 if (WizardMode) { |
4151 // why each class is loaded | 4151 // useful when investigating why a class is loaded |
4152 JavaThread::current()->print_stack_on(tty); | 4152 JavaThread::current()->print_stack_on(tty); |
4153 } | |
4153 } | 4154 } |
4154 | 4155 |
4155 if (TraceClassResolution) { | 4156 if (TraceClassResolution) { |
4156 ResourceMark rm; | 4157 ResourceMark rm; |
4157 // print out the superclass. | 4158 // print out the superclass. |