--- old/src/share/vm/utilities/globalDefinitions_gcc.hpp 2015-11-27 02:29:09.657370862 -0500 +++ new/src/share/vm/utilities/globalDefinitions_gcc.hpp 2015-11-27 02:29:08.345297065 -0500 @@ -326,4 +326,8 @@ #define JLONG_FORMAT "%ld" #endif // _LP64 && __APPLE__ +#ifndef USE_LIBRARY_BASED_TLS_ONLY +#define THREAD_LOCAL_DECL __thread +#endif + #endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_GCC_HPP