hotspot/src/share/vm/utilities/events.hpp
changeset 34633 2a6c7c7b30a7
parent 31234 48000028382c
child 37466 287c4ebd11b0
--- a/hotspot/src/share/vm/utilities/events.hpp	Fri Dec 04 04:29:31 2015 +0000
+++ b/hotspot/src/share/vm/utilities/events.hpp	Fri Dec 04 04:06:37 2015 -0500
@@ -248,8 +248,8 @@
 
 template <class T>
 inline void EventLogBase<T>::print_log_on(outputStream* out) {
-  if (ThreadLocalStorage::get_thread_slow() == NULL) {
-    // Not a regular Java thread so don't bother locking
+  if (Thread::current_or_null() == NULL) {
+    // Not yet attached? Don't try to use locking
     print_log_impl(out);
   } else {
     MutexLockerEx ml(&_mutex, Mutex::_no_safepoint_check_flag);