hotspot/src/share/vm/runtime/thread.cpp
void Thread::initialize_thread_local_storage() {
// Note: Make sure this method only calls
// non-blocking operations. Otherwise, it might not work
// with the thread-startup/safepoint interaction.
// During Java thread startup, safepoint code should allow this
// method to complete because it may need to allocate memory to
// store information for the new thread.
{- -------------------------------------------
(1) ThreadLocalStorage::set_thread() で
現在実行中のネイティブスレッドの thread local storage に
この Thread オブジェクトを登録する.
---------------------------------------- -}
// initialize structure dependent on thread local storage
ThreadLocalStorage::set_thread(this);
{- -------------------------------------------
(1) 各プラットフォーム依存の初期化処理を行う.
---------------------------------------- -}
// set up any platform-specific state.
os::initialize_thread();
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.