< prev index next >
src/hotspot/share/jfr/periodic/jfrPeriodic.cpp
Print this page
rev 52486 : imported patch fix_build
@@ -27,11 +27,10 @@
#include "classfile/classLoaderDataGraph.hpp"
#include "classfile/classLoaderStats.hpp"
#include "classfile/javaClasses.hpp"
#include "code/codeCache.hpp"
#include "compiler/compileBroker.hpp"
-#include "gc/g1/g1HeapRegionEventSender.hpp"
#include "gc/shared/gcConfiguration.hpp"
#include "gc/shared/gcTrace.hpp"
#include "gc/shared/objectCountEventSender.hpp"
#include "gc/shared/vmGCOperations.hpp"
#include "jfr/jfrEvents.hpp"
@@ -61,10 +60,14 @@
#include "services/management.hpp"
#include "services/threadService.hpp"
#include "utilities/exceptions.hpp"
#include "utilities/globalDefinitions.hpp"
+#if INCLUDE_G1GC
+#include "gc/g1/g1HeapRegionEventSender.hpp"
+#endif
+
/**
* JfrPeriodic class
* Implementation of declarations in
* xsl generated traceRequestables.hpp
*/
@@ -309,22 +312,26 @@
TRACE_REQUEST_FUNC(ObjectCount) {
VM_GC_SendObjectCountEvent op;
VMThread::execute(&op);
}
+#if INCLUDE_G1GC
class VM_G1SendHeapRegionInfoEvents : public VM_Operation {
virtual void doit() {
G1HeapRegionEventSender::send_events();
}
virtual VMOp_Type type() const { return VMOp_HeapIterateOperation; }
};
+#endif // INCLUDE_G1GC
TRACE_REQUEST_FUNC(G1HeapRegionInformation) {
+#if INCLUDE_G1GC
if (UseG1GC) {
VM_G1SendHeapRegionInfoEvents op;
VMThread::execute(&op);
}
+#endif // INCLUDE_G1GC
}
// Java Mission Control (JMC) uses (Java) Long.MIN_VALUE to describe that a
// long value is undefined.
static jlong jmc_undefined_long = min_jlong;
< prev index next >