# HG changeset patch # User stuefe # Date 1489221037 -3600 # Node ID 91bb9c083d0edbb8e6c6657a8e24ccba7f2be623 # Parent 6868eb69ce706d4e85d30a23edc20bd090bc71ba 8176442: [aix] assert(_thr_current == 0L) failed: Thread::current already initialized Summary: Revert Thread::current() back to pthread library based TLS on AIX. Reviewed-by: diff --git a/src/share/vm/utilities/globalDefinitions_xlc.hpp b/src/share/vm/utilities/globalDefinitions_xlc.hpp --- a/src/share/vm/utilities/globalDefinitions_xlc.hpp +++ b/src/share/vm/utilities/globalDefinitions_xlc.hpp @@ -153,6 +153,9 @@ // offset_of as it is defined for gcc. #define offset_of(klass,field) (size_t)((intx)&(((klass*)16)->field) - 16) +// 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