hotspot/src/share/vm/runtime/java.cpp
changeset 24658 e41df2fc6e87
parent 24429 4efc66ee325c
child 24844 d1345c68cea9
--- a/hotspot/src/share/vm/runtime/java.cpp	Tue May 20 20:35:39 2014 +0200
+++ b/hotspot/src/share/vm/runtime/java.cpp	Wed May 21 14:36:18 2014 -0400
@@ -120,7 +120,8 @@
 }
 
 void print_method_profiling_data() {
-  if (ProfileInterpreter COMPILER1_PRESENT(|| C1UpdateMethodData)) {
+  if (ProfileInterpreter COMPILER1_PRESENT(|| C1UpdateMethodData) &&
+     (PrintMethodData || CompilerOracle::should_print_methods())) {
     ResourceMark rm;
     HandleMark hm;
     collected_profiled_methods = new GrowableArray<Method*>(1024);