mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8230877: Rename THREAD_LOCAL_DECL to THREAD_LOCAL
Reviewed-by: kbarrett, dholmes
This commit is contained in:
parent
39fd81e4a7
commit
f3d8d57cd3
6 changed files with 5 additions and 15 deletions
|
@ -166,7 +166,7 @@ void universe_post_module_init(); // must happen after call_initPhase2
|
||||||
|
|
||||||
#ifndef USE_LIBRARY_BASED_TLS_ONLY
|
#ifndef USE_LIBRARY_BASED_TLS_ONLY
|
||||||
// Current thread is maintained as a thread-local variable
|
// 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
|
#endif
|
||||||
|
|
||||||
// ======= Thread ========
|
// ======= Thread ========
|
||||||
|
|
|
@ -142,7 +142,7 @@ class Thread: public ThreadShadow {
|
||||||
|
|
||||||
#ifndef USE_LIBRARY_BASED_TLS_ONLY
|
#ifndef USE_LIBRARY_BASED_TLS_ONLY
|
||||||
// Current thread is maintained as a thread-local variable
|
// Current thread is maintained as a thread-local variable
|
||||||
static THREAD_LOCAL_DECL Thread* _thr_current;
|
static THREAD_LOCAL Thread* _thr_current;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Thread local data area available to the GC. The internal
|
// Thread local data area available to the GC. The internal
|
||||||
|
|
|
@ -254,9 +254,7 @@ inline int wcslen(const jchar* x) { return wcslen((const wchar_t*)x); }
|
||||||
#define JLONG_FORMAT_W(width) "%" #width "ld"
|
#define JLONG_FORMAT_W(width) "%" #width "ld"
|
||||||
#endif // _LP64 && __APPLE__
|
#endif // _LP64 && __APPLE__
|
||||||
|
|
||||||
#ifndef USE_LIBRARY_BASED_TLS_ONLY
|
#define THREAD_LOCAL __thread
|
||||||
#define THREAD_LOCAL_DECL __thread
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Inlining support
|
// Inlining support
|
||||||
#define NOINLINE __attribute__ ((noinline))
|
#define NOINLINE __attribute__ ((noinline))
|
||||||
|
|
|
@ -245,9 +245,7 @@ inline int wcslen(const jchar* x) { return wcslen((const wchar_t*)x); }
|
||||||
|
|
||||||
#define offset_of(klass,field) offsetof(klass,field)
|
#define offset_of(klass,field) offsetof(klass,field)
|
||||||
|
|
||||||
#ifndef USE_LIBRARY_BASED_TLS_ONLY
|
#define THREAD_LOCAL __thread
|
||||||
#define THREAD_LOCAL_DECL __thread
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Inlining support
|
// Inlining support
|
||||||
#define NOINLINE
|
#define NOINLINE
|
||||||
|
|
|
@ -153,9 +153,7 @@ inline int g_isfinite(jdouble f) { return _finite(f); }
|
||||||
|
|
||||||
#define offset_of(klass,field) offsetof(klass,field)
|
#define offset_of(klass,field) offsetof(klass,field)
|
||||||
|
|
||||||
#ifndef USE_LIBRARY_BASED_TLS_ONLY
|
#define THREAD_LOCAL __declspec(thread)
|
||||||
#define THREAD_LOCAL_DECL __declspec( thread )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Inlining support
|
// Inlining support
|
||||||
// MSVC has '__declspec(noinline)' but according to the official documentation
|
// MSVC has '__declspec(noinline)' but according to the official documentation
|
||||||
|
|
|
@ -130,10 +130,6 @@ inline int wcslen(const jchar* x) { return wcslen((const wchar_t*)x); }
|
||||||
// AIX 5.3 has buggy __thread support. (see JDK-8176442).
|
// AIX 5.3 has buggy __thread support. (see JDK-8176442).
|
||||||
#define USE_LIBRARY_BASED_TLS_ONLY 1
|
#define USE_LIBRARY_BASED_TLS_ONLY 1
|
||||||
|
|
||||||
#ifndef USE_LIBRARY_BASED_TLS_ONLY
|
|
||||||
#define THREAD_LOCAL_DECL __thread
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Inlining support
|
// Inlining support
|
||||||
//
|
//
|
||||||
// Be aware that for function/method declarations, xlC only supports the following
|
// Be aware that for function/method declarations, xlC only supports the following
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue