diff -ru a/hotspot/src/os/solaris/vm/thread_solaris.inline.hpp b/hotspot/src/os/solaris/vm/thread_solaris.inline.hpp --- hotspot/src/os/solaris/vm/thread_solaris.inline.hpp 2022-07-31 16:21:00.000000000 +0000 +++ hotspot/src/os/solaris/vm/thread_solaris.inline.hpp 2022-11-10 19:56:04.464170013 +0000 @@ -44,7 +44,4 @@ _thr_current = thread; } -inline Thread* ThreadLocalStorage::thread() { - return _thr_current; -} diff -ru a/hotspot/src/os_cpu/solaris_x86/vm/threadLS_solaris_x86.hpp b/hotspot/src/os_cpu/solaris_x86/vm/threadLS_solaris_x86.hpp --- hotspot/src/os_cpu/solaris_x86/vm/threadLS_solaris_x86.hpp 2022-07-31 16:21:00.000000000 +0000 +++ /hotspot/src/os_cpu/solaris_x86/vm/threadLS_solaris_x86.hpp 2022-11-10 19:55:24.295227949 +0000 @@ -34,6 +34,6 @@ static bool _initialized; // needed for shared API public: - static inline Thread* thread(); + static inline Thread* thread() { return _thr_current; } #endif // OS_CPU_SOLARIS_X86_VM_THREADLS_SOLARIS_X86_HPP