--- a/src/hotspot/share/jfr/periodic/jfrPeriodic.cpp Fri Aug 23 18:47:55 2019 +0200
+++ b/src/hotspot/share/jfr/periodic/jfrPeriodic.cpp Sat Aug 24 14:30:27 2019 +0200
@@ -65,7 +65,9 @@
#include "services/threadService.hpp"
#include "utilities/exceptions.hpp"
#include "utilities/globalDefinitions.hpp"
-
+#if INCLUDE_SHENANDOAHGC
+#include "gc/shenandoah/shenandoahJfrSupport.hpp"
+#endif
/**
* JfrPeriodic class
* Implementation of declarations in
@@ -629,3 +631,14 @@
event.set_flushingEnabled(UseCodeCacheFlushing);
event.commit();
}
+
+
+TRACE_REQUEST_FUNC(ShenandoahHeapRegionInformation) {
+#if INCLUDE_SHENANDOAHGC
+ if (UseShenandoahGC) {
+ VM_ShenandoahSendHeapRegionInfoEvents op;
+ VMThread::execute(&op);
+ }
+#endif
+}
+