hotspot/src/os/solaris/vm/attachListener_solaris.cpp
// Initialization - create the door, locks, and other initialization
int SolarisAttachListener::init() {
{- -------------------------------------------
(1) SolarisAttachListener::create_door() を呼んで
通信用の doors を作成する.
(失敗したらここでリターン)
---------------------------------------- -}
if (create_door()) {
return -1;
}
{- -------------------------------------------
(1) os::Solaris::mutex_init() で mutex を初期化する.
---------------------------------------- -}
int status = os::Solaris::mutex_init(&_mutex);
assert_status(status==0, status, "mutex_init");
{- -------------------------------------------
(1) sema_init() で semaphore を初期化する.
---------------------------------------- -}
status = ::sema_init(&_wakeup, 0, NULL, NULL);
assert_status(status==0, status, "sema_init");
{- -------------------------------------------
(1)
---------------------------------------- -}
set_head(NULL);
set_tail(NULL);
{- -------------------------------------------
(1) リターン
---------------------------------------- -}
return 0;
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.