--- a/src/hotspot/share/jfr/recorder/service/jfrRecorderThreadLoop.cpp Fri May 17 15:53:21 2019 +0200
+++ b/src/hotspot/share/jfr/recorder/service/jfrRecorderThreadLoop.cpp Fri May 17 16:02:27 2019 +0200
@@ -40,6 +40,7 @@
#define START (msgs & (MSGBIT(MSG_START)))
#define SHUTDOWN (msgs & MSGBIT(MSG_SHUTDOWN))
#define ROTATE (msgs & (MSGBIT(MSG_ROTATE)|MSGBIT(MSG_STOP)))
+ #define FLUSHPOINT (msgs & (MSGBIT(MSG_FLUSHPOINT)|MSGBIT(MSG_FLUSHPOINT_METADATA)))
#define PROCESS_FULL_BUFFERS (msgs & (MSGBIT(MSG_ROTATE)|MSGBIT(MSG_STOP)|MSGBIT(MSG_FULLBUFFER)))
#define SCAVENGE (msgs & (MSGBIT(MSG_DEADBUFFER)))
@@ -72,6 +73,8 @@
service.start();
} else if (ROTATE) {
service.rotate(msgs);
+ } else if (FLUSHPOINT) {
+ service.flush(msgs);
}
JfrMsg_lock->lock();
post_box.notify_waiters();
@@ -90,6 +93,7 @@
#undef START
#undef SHUTDOWN
#undef ROTATE
+ #undef FLUSHPOINT
#undef PROCESS_FULL_BUFFERS
#undef SCAVENGE
}