src/hotspot/share/jfr/periodic/sampling/jfrThreadSampler.cpp
changeset 52460 f1bb77833b59
parent 52448 bc5c7f63dbae
child 52569 1a534c7926cc
equal deleted inserted replaced
52459:cbe83e9c2100 52460:f1bb77833b59
   357     return false;
   357     return false;
   358   }
   358   }
   359 
   359 
   360   bool ret = false;
   360   bool ret = false;
   361   thread->set_trace_flag();
   361   thread->set_trace_flag();
   362   if (!UseMembar) {
       
   363     os::serialize_thread_states();
       
   364   }
       
   365   if (JAVA_SAMPLE == type) {
   362   if (JAVA_SAMPLE == type) {
   366     if (thread_state_in_java(thread)) {
   363     if (thread_state_in_java(thread)) {
   367       ret = sample_thread_in_java(thread, frames, max_frames);
   364       ret = sample_thread_in_java(thread, frames, max_frames);
   368     }
   365     }
   369   } else {
   366   } else {