hotspot/src/share/vm/utilities/events.hpp
changeset 34633 2a6c7c7b30a7
parent 31234 48000028382c
child 37466 287c4ebd11b0
equal deleted inserted replaced
34632:bf3518bba285 34633:2a6c7c7b30a7
   246 }
   246 }
   247 
   247 
   248 
   248 
   249 template <class T>
   249 template <class T>
   250 inline void EventLogBase<T>::print_log_on(outputStream* out) {
   250 inline void EventLogBase<T>::print_log_on(outputStream* out) {
   251   if (ThreadLocalStorage::get_thread_slow() == NULL) {
   251   if (Thread::current_or_null() == NULL) {
   252     // Not a regular Java thread so don't bother locking
   252     // Not yet attached? Don't try to use locking
   253     print_log_impl(out);
   253     print_log_impl(out);
   254   } else {
   254   } else {
   255     MutexLockerEx ml(&_mutex, Mutex::_no_safepoint_check_flag);
   255     MutexLockerEx ml(&_mutex, Mutex::_no_safepoint_check_flag);
   256     print_log_impl(out);
   256     print_log_impl(out);
   257   }
   257   }