src/share/vm/ci/ciEnv.cpp
Print this page
rev 13113 : 8182651: Add TRACE_ONLY conditional macro to support more fine-grained INCLUDE_TRACE programming
Reviewed-by:
@@ -52,19 +52,21 @@
#include "prims/jvmtiExport.hpp"
#include "runtime/init.hpp"
#include "runtime/reflection.hpp"
#include "runtime/sharedRuntime.hpp"
#include "runtime/thread.inline.hpp"
-#include "trace/tracing.hpp"
#include "utilities/dtrace.hpp"
#include "utilities/macros.hpp"
#ifdef COMPILER1
#include "c1/c1_Runtime1.hpp"
#endif
#ifdef COMPILER2
#include "opto/runtime.hpp"
#endif
+#if INCLUDE_TRACE
+#include "trace/tracing.hpp"
+#endif
// ciEnv
//
// This class is the top level broker for requests from the compiler
// to the VM.
@@ -1152,17 +1154,18 @@
_failure_reason = reason;
}
}
void ciEnv::report_failure(const char* reason) {
- // Create and fire JFR event
+#if INCLUDE_TRACE
EventCompilationFailure event;
if (event.should_commit()) {
event.set_compileId(compile_id());
event.set_failureMessage(reason);
event.commit();
}
+#endif
}
// ------------------------------------------------------------------
// ciEnv::record_method_not_compilable()
void ciEnv::record_method_not_compilable(const char* reason, bool all_tiers) {