src/hotspot/share/jfr/support/jfrThreadLocal.cpp
branchJEP-349-branch
changeset 57987 23e3cd901cb6
parent 57983 a57907813a83
child 58100 0e549560be5e
equal deleted inserted replaced
57985:be121cbf3284 57987:23e3cd901cb6
   177 
   177 
   178 ByteSize JfrThreadLocal::java_event_writer_offset() {
   178 ByteSize JfrThreadLocal::java_event_writer_offset() {
   179   return in_ByteSize(offset_of(JfrThreadLocal, _java_event_writer));
   179   return in_ByteSize(offset_of(JfrThreadLocal, _java_event_writer));
   180 }
   180 }
   181 
   181 
   182 void JfrThreadLocal::exclude(Thread* t) {
   182 void JfrThreadLocal::exclude(const Thread* t) {
   183   assert(t != NULL, "invariant");
   183   assert(t != NULL, "invariant");
   184   t->jfr_thread_local()->_excluded = true;
   184   t->jfr_thread_local()->_excluded = true;
   185 }
   185 }
   186 
   186 
   187 void JfrThreadLocal::include(Thread* t) {
   187 void JfrThreadLocal::include(const Thread* t) {
   188   assert(t != NULL, "invariant");
   188   assert(t != NULL, "invariant");
   189   t->jfr_thread_local()->_excluded = false;
   189   t->jfr_thread_local()->_excluded = false;
   190 }
   190 }
   191 
   191 
   192 u4 JfrThreadLocal::stackdepth() const {
   192 u4 JfrThreadLocal::stackdepth() const {