< prev index next >

src/os/linux/vm/threadCritical_linux.cpp

Print this page
rev 13542 : 8187040: ThreadCritical crashes on Solaris if used between os::init and os::init_2
Reviewed-by:

*** 35,50 **** static pthread_t tc_owner = 0; static pthread_mutex_t tc_mutex = PTHREAD_MUTEX_INITIALIZER; static int tc_count = 0; - void ThreadCritical::initialize() { - } - - void ThreadCritical::release() { - } - ThreadCritical::ThreadCritical() { pthread_t self = pthread_self(); if (self != tc_owner) { int ret = pthread_mutex_lock(&tc_mutex); guarantee(ret == 0, "fatal error with pthread_mutex_lock()"); --- 35,44 ----
< prev index next >