--- old/src/share/vm/utilities/events.hpp 2015-11-19 01:04:04.647029780 -0500 +++ new/src/share/vm/utilities/events.hpp 2015-11-19 01:04:03.094942458 -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);