From 90dc79523484552df2914869f6cf493f86776cf5 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Fri, 13 Jan 2006 06:14:04 +0000 Subject: [PATCH] Increase the number of spinlocks, since libc's malloc implementation is about to significantly increase the number of spinlocks used. Approved by: markm (mentor) --- lib/libkse/thread/thr_spinlock.c | 2 +- lib/libpthread/thread/thr_spinlock.c | 2 +- lib/libthr/thread/thr_spinlock.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libkse/thread/thr_spinlock.c b/lib/libkse/thread/thr_spinlock.c index 2b2b2512c96e..823c148dfd66 100644 --- a/lib/libkse/thread/thr_spinlock.c +++ b/lib/libkse/thread/thr_spinlock.c @@ -40,7 +40,7 @@ #include "spinlock.h" #include "thr_private.h" -#define MAX_SPINLOCKS 5 +#define MAX_SPINLOCKS 72 struct spinlock_extra { spinlock_t *owner; diff --git a/lib/libpthread/thread/thr_spinlock.c b/lib/libpthread/thread/thr_spinlock.c index 2b2b2512c96e..823c148dfd66 100644 --- a/lib/libpthread/thread/thr_spinlock.c +++ b/lib/libpthread/thread/thr_spinlock.c @@ -40,7 +40,7 @@ #include "spinlock.h" #include "thr_private.h" -#define MAX_SPINLOCKS 5 +#define MAX_SPINLOCKS 72 struct spinlock_extra { spinlock_t *owner; diff --git a/lib/libthr/thread/thr_spinlock.c b/lib/libthr/thread/thr_spinlock.c index 7d5cd847cae0..25f633751e17 100644 --- a/lib/libthr/thread/thr_spinlock.c +++ b/lib/libthr/thread/thr_spinlock.c @@ -40,7 +40,7 @@ #include "thr_private.h" -#define MAX_SPINLOCKS 20 +#define MAX_SPINLOCKS 72 /* * These data structures are used to trace all spinlocks