--- old/src/hotspot/share/runtime/thread.cpp 2019-09-11 22:22:01.809884064 +0200 +++ new/src/hotspot/share/runtime/thread.cpp 2019-09-11 22:22:01.528874885 +0200 @@ -166,7 +166,7 @@ #ifndef USE_LIBRARY_BASED_TLS_ONLY // Current thread is maintained as a thread-local variable -THREAD_LOCAL_DECL Thread* Thread::_thr_current = NULL; +thread_local Thread* Thread::_thr_current = NULL; #endif // ======= Thread ========