--- old/src/hotspot/share/runtime/thread.cpp 2019-09-12 10:44:02.408909305 +0200 +++ new/src/hotspot/share/runtime/thread.cpp 2019-09-12 10:44:02.151900582 +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 ======== --- old/src/hotspot/share/runtime/thread.hpp 2019-09-12 10:44:02.820923288 +0200 +++ new/src/hotspot/share/runtime/thread.hpp 2019-09-12 10:44:02.564914600 +0200 @@ -142,7 +142,7 @@ #ifndef USE_LIBRARY_BASED_TLS_ONLY // Current thread is maintained as a thread-local variable - static THREAD_LOCAL_DECL Thread* _thr_current; + static THREAD_LOCAL Thread* _thr_current; #endif // Thread local data area available to the GC. The internal --- old/src/hotspot/share/utilities/globalDefinitions_gcc.hpp 2019-09-12 10:44:03.275938731 +0200 +++ new/src/hotspot/share/utilities/globalDefinitions_gcc.hpp 2019-09-12 10:44:02.950927701 +0200 @@ -254,9 +254,7 @@ #define JLONG_FORMAT_W(width) "%" #width "ld" #endif // _LP64 && __APPLE__ -#ifndef USE_LIBRARY_BASED_TLS_ONLY -#define THREAD_LOCAL_DECL __thread -#endif +#define THREAD_LOCAL __thread // Inlining support #define NOINLINE __attribute__ ((noinline)) --- old/src/hotspot/share/utilities/globalDefinitions_solstudio.hpp 2019-09-12 10:44:03.687952715 +0200 +++ new/src/hotspot/share/utilities/globalDefinitions_solstudio.hpp 2019-09-12 10:44:03.374942092 +0200 @@ -245,9 +245,7 @@ #define offset_of(klass,field) offsetof(klass,field) -#ifndef USE_LIBRARY_BASED_TLS_ONLY -#define THREAD_LOCAL_DECL __thread -#endif +#define THREAD_LOCAL __thread // Inlining support #define NOINLINE --- old/src/hotspot/share/utilities/globalDefinitions_visCPP.hpp 2019-09-12 10:44:04.062965443 +0200 +++ new/src/hotspot/share/utilities/globalDefinitions_visCPP.hpp 2019-09-12 10:44:03.800956550 +0200 @@ -153,9 +153,7 @@ #define offset_of(klass,field) offsetof(klass,field) -#ifndef USE_LIBRARY_BASED_TLS_ONLY -#define THREAD_LOCAL_DECL __declspec( thread ) -#endif +#define THREAD_LOCAL __declspec(thread) // Inlining support // MSVC has '__declspec(noinline)' but according to the official documentation --- old/src/hotspot/share/utilities/globalDefinitions_xlc.hpp 2019-09-12 10:44:04.486979834 +0200 +++ new/src/hotspot/share/utilities/globalDefinitions_xlc.hpp 2019-09-12 10:44:04.178969380 +0200 @@ -130,10 +130,6 @@ // AIX 5.3 has buggy __thread support. (see JDK-8176442). #define USE_LIBRARY_BASED_TLS_ONLY 1 -#ifndef USE_LIBRARY_BASED_TLS_ONLY -#define THREAD_LOCAL_DECL __thread -#endif - // Inlining support // // Be aware that for function/method declarations, xlC only supports the following