equal
deleted
inserted
replaced
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 } |