8140581: Excluding compile messages should only be printed with PrintCompilation
Summary: Use PrintCompilation flag instead
Reviewed-by: kvn
--- a/hotspot/src/share/vm/compiler/compileBroker.cpp Wed Oct 28 16:01:45 2015 +0000
+++ b/hotspot/src/share/vm/compiler/compileBroker.cpp Wed Oct 28 15:44:28 2015 +0100
@@ -1202,7 +1202,7 @@
double scale;
if (excluded || (CompilerOracle::has_option_value(method, "CompileThresholdScaling", scale) && scale == 0)) {
bool quietly = CompilerOracle::should_exclude_quietly();
- if (!quietly) {
+ if (PrintCompilation && !quietly) {
// This does not happen quietly...
ResourceMark rm;
tty->print("### Excluding %s:%s",