--- old/src/share/vm/code/codeCache.cpp 2020-01-16 16:56:29.315503870 +0300 +++ new/src/share/vm/code/codeCache.cpp 2020-01-16 16:56:29.271505290 +0300 @@ -32,7 +32,9 @@ #include "code/pcDesc.hpp" #include "compiler/compileBroker.hpp" #include "gc_implementation/shared/markSweep.hpp" +#if INCLUDE_JFR #include "jfr/jfrEvents.hpp" +#endif #include "memory/allocation.inline.hpp" #include "memory/gcLocker.hpp" #include "memory/iterator.hpp" @@ -784,6 +786,7 @@ void CodeCache::report_codemem_full() { _codemem_full_count++; +#if INCLUDE_JFR EventCodeCacheFull event; if (event.should_commit()) { event.set_codeBlobType((u1)CodeBlobType::All); @@ -797,6 +800,7 @@ event.set_fullCount(_codemem_full_count); event.commit(); } +#endif } //------------------------------------------------------------------------------------------------