--- old/src/share/vm/c1/c1_GraphBuilder.cpp 2020-01-16 16:56:28.039545045 +0300 +++ new/src/share/vm/c1/c1_GraphBuilder.cpp 2020-01-16 16:56:27.987546723 +0300 @@ -34,7 +34,9 @@ #include "ci/ciMemberName.hpp" #include "compiler/compileBroker.hpp" #include "interpreter/bytecode.hpp" +#if INCLUDE_JFR #include "jfr/jfrEvents.hpp" +#endif #include "runtime/sharedRuntime.hpp" #include "runtime/compilationPolicy.hpp" #include "utilities/bitMap.inline.hpp" @@ -4403,6 +4405,7 @@ } +#if INCLUDE_JFR static void post_inlining_event(EventCompilerInlining* event, int compile_id, const char* msg, @@ -4426,6 +4429,7 @@ event->set_callee(callee_struct); event->commit(); } +#endif void GraphBuilder::print_inlining(ciMethod* callee, const char* msg, bool success) { CompileLog* log = compilation()->log(); @@ -4443,10 +4447,12 @@ } } +#if INCLUDE_JFR EventCompilerInlining event; if (event.should_commit()) { post_inlining_event(&event, compilation()->env()->task()->compile_id(), msg, success, bci(), method(), callee); } +#endif if (!PrintInlining && !compilation()->method()->has_option("PrintInlining")) { return;