Top


定義場所(file name)

hotspot/src/os/solaris/vm/os_solaris.cpp

名前(function name)

void os::thread_local_storage_at_put(int index, void* value) {

本体部(body)

  {- -------------------------------------------
  (1) thr_setspecific() および ThreadLocalStorage::set_thread_in_slot() で登録するだけ.
      ---------------------------------------- -}

      // %%% this is used only in threadLocalStorage.cpp
      if (thr_setspecific((thread_key_t)index, value)) {
        if (errno == ENOMEM) {
           vm_exit_out_of_memory(SMALLINT, "thr_setspecific: out of swap space");
        } else {
          fatal(err_msg("os::thread_local_storage_at_put: thr_setspecific failed "
                        "(%s)", strerror(errno)));
        }
      } else {
          ThreadLocalStorage::set_thread_in_slot ((Thread *) value) ;
      }
    }

This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.