< prev index next >

src/share/vm/utilities/globalDefinitions_xlc.hpp

Print this page
rev 12685 : 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:

*** 151,160 **** --- 151,163 ---- // object and xlc cannot compile the expression offsetof(DataLayout, // _cells[index]) in DataLayout::cell_offset() . Therefore we define // 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 // Inlining support
< prev index next >