# HG changeset patch # User pliden # Date 1568356809 -7200 # Node ID dc792fa77da0de5e93624900b71914b8e2e43077 # Parent 70aebd567a5ce59501c22648bcb278fa05757b7e 8230877: Rename THREAD_LOCAL_DECL to THREAD_LOCAL Reviewed-by: kbarrett, dholmes diff -r 70aebd567a5c -r dc792fa77da0 src/hotspot/share/runtime/thread.cpp --- a/src/hotspot/share/runtime/thread.cpp Fri Sep 13 08:40:09 2019 +0200 +++ b/src/hotspot/share/runtime/thread.cpp Fri Sep 13 08:40:09 2019 +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 ======== diff -r 70aebd567a5c -r dc792fa77da0 src/hotspot/share/runtime/thread.hpp --- a/src/hotspot/share/runtime/thread.hpp Fri Sep 13 08:40:09 2019 +0200 +++ b/src/hotspot/share/runtime/thread.hpp Fri Sep 13 08:40:09 2019 +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 diff -r 70aebd567a5c -r dc792fa77da0 src/hotspot/share/utilities/globalDefinitions_gcc.hpp --- a/src/hotspot/share/utilities/globalDefinitions_gcc.hpp Fri Sep 13 08:40:09 2019 +0200 +++ b/src/hotspot/share/utilities/globalDefinitions_gcc.hpp Fri Sep 13 08:40:09 2019 +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)) diff -r 70aebd567a5c -r dc792fa77da0 src/hotspot/share/utilities/globalDefinitions_solstudio.hpp --- a/src/hotspot/share/utilities/globalDefinitions_solstudio.hpp Fri Sep 13 08:40:09 2019 +0200 +++ b/src/hotspot/share/utilities/globalDefinitions_solstudio.hpp Fri Sep 13 08:40:09 2019 +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 diff -r 70aebd567a5c -r dc792fa77da0 src/hotspot/share/utilities/globalDefinitions_visCPP.hpp --- a/src/hotspot/share/utilities/globalDefinitions_visCPP.hpp Fri Sep 13 08:40:09 2019 +0200 +++ b/src/hotspot/share/utilities/globalDefinitions_visCPP.hpp Fri Sep 13 08:40:09 2019 +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 diff -r 70aebd567a5c -r dc792fa77da0 src/hotspot/share/utilities/globalDefinitions_xlc.hpp --- a/src/hotspot/share/utilities/globalDefinitions_xlc.hpp Fri Sep 13 08:40:09 2019 +0200 +++ b/src/hotspot/share/utilities/globalDefinitions_xlc.hpp Fri Sep 13 08:40:09 2019 +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