Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
added JVMCI specific option TraceClassLoadingStack to see why classes…
Browse files Browse the repository at this point in the history
… are loaded
  • Loading branch information
dougxc committed Nov 26, 2015
1 parent 8c3de9a commit 25de325
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/share/vm/classfile/classFileParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4216,7 +4216,12 @@ instanceKlassHandle ClassFileParser::parseClassFile(Symbol* name,
InstanceKlass::cast(class_loader->klass())->external_name());
}
}

#if INCLUDE_JVMCI
if (TraceClassLoadingStack) {
// useful when investigating why a class is loaded
JavaThread::current()->print_stack_on(tty);
}
#endif
if (TraceClassResolution) {
ResourceMark rm;
// print out the superclass.
Expand Down
3 changes: 3 additions & 0 deletions src/share/vm/jvmci/jvmci_globals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
\
develop(bool, TraceUncollectedSpeculations, false, \
"Print message when a failed speculation was not collected") \
product(intx, TraceClassLoadingStack, false, \
"Print stack when loading a class") \
\


// Read default values for JVMCI globals
Expand Down

0 comments on commit 25de325

Please sign in to comment.