--- a/src/hotspot/share/jfr/support/jfrThreadLocal.hpp Wed Oct 30 16:14:56 2019 +0100
+++ b/src/hotspot/share/jfr/support/jfrThreadLocal.hpp Wed Oct 30 19:43:52 2019 +0100
@@ -50,12 +50,13 @@
unsigned int _stack_trace_hash;
mutable u4 _stackdepth;
volatile jint _entering_suspend_flag;
+ bool _excluded;
bool _dead;
JfrBuffer* install_native_buffer() const;
JfrBuffer* install_java_buffer() const;
JfrStackFrame* install_stackframes() const;
-
+ void release(Thread* t);
static void release(JfrThreadLocal* tl, Thread* t);
public:
@@ -203,6 +204,10 @@
_trace_id = id;
}
+ bool is_excluded() const {
+ return _excluded;
+ }
+
bool is_dead() const {
return _dead;
}
@@ -211,6 +216,9 @@
void set_thread_blob(const JfrBlobHandle& handle);
const JfrBlobHandle& thread_blob() const;
+ static void exclude(Thread* t);
+ static void include(Thread* t);
+
static void on_start(Thread* t);
static void on_exit(Thread* t);