--- old/src/share/vm/utilities/events.hpp 2015-11-27 02:29:05.605142948 -0500 +++ new/src/share/vm/utilities/events.hpp 2015-11-27 02:29:04.297069376 -0500 @@ -248,8 +248,8 @@ template inline void EventLogBase::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);