1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

backout experimental adaptive spinning mutex for product use.

This commit is contained in:
David Xu 2007-05-09 08:39:33 +00:00
parent 4439f8b4b6
commit 00784f8b10
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169413
3 changed files with 0 additions and 9 deletions

View File

@ -66,7 +66,6 @@ pthreadlist _thread_gc_list = TAILQ_HEAD_INITIALIZER(_thread_gc_list);
int _thread_active_threads = 1;
atfork_head _thr_atfork_list = TAILQ_HEAD_INITIALIZER(_thr_atfork_list);
struct umutex _thr_atfork_lock = DEFAULT_UMUTEX;
int _thr_adaptive_spin = 0;
struct pthread_prio _thr_priorities[3] = {
{RTP_PRIO_MIN, RTP_PRIO_MAX, 0}, /* FIFO */
@ -424,12 +423,6 @@ init_private(void)
{
size_t len;
int mib[2];
char *p;
if (init_once == 0) {
if ((p = getenv("LIBPTHREAD_ADAPTIVE_SPIN")) != NULL)
_thr_adaptive_spin = atoi(p);
}
_thr_umutex_init(&_mutex_static_lock);
_thr_umutex_init(&_cond_static_lock);

View File

@ -136,7 +136,6 @@ mutex_init(pthread_mutex_t *mutex,
pmutex->m_lock.m_owner = UMUTEX_UNOWNED;
pmutex->m_lock.m_flags = 0;
}
pmutex->m_lock.m_spincount = _thr_adaptive_spin;
*mutex = pmutex;
return (0);
}

View File

@ -36,7 +36,6 @@ _thr_umutex_init(struct umutex *mtx)
static struct umutex default_mtx = DEFAULT_UMUTEX;
*mtx = default_mtx;
mtx->m_spincount = _thr_adaptive_spin;
}
int