--- a/src/hotspot/share/jfr/jfr.cpp Wed Oct 30 16:14:56 2019 +0100
+++ b/src/hotspot/share/jfr/jfr.cpp Wed Oct 30 19:43:52 2019 +0100
@@ -71,6 +71,18 @@
JfrThreadLocal::on_exit(t);
}
+void Jfr::exclude_thread(Thread* t) {
+ JfrThreadLocal::exclude(t);
+}
+
+void Jfr::include_thread(Thread* t) {
+ JfrThreadLocal::include(t);
+}
+
+bool Jfr::is_excluded(Thread* t) {
+ return t != NULL && t->jfr_thread_local()->is_excluded();
+}
+
void Jfr::on_java_thread_dismantle(JavaThread* jt) {
if (JfrRecorder::is_recording()) {
JfrCheckpointManager::write_thread_checkpoint(jt);