summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2006-01-13 06:14:04 +0000
committerjasone <jasone@FreeBSD.org>2006-01-13 06:14:04 +0000
commite30d92806f5c465b9ece4a6a4117a12a3d55fc61 (patch)
tree51cdabd86ff2536fa1b7861f14c7418070513481
parente256afc28c0a9335078fcb4700bcc567aebd033b (diff)
downloadFreeBSD-src-e30d92806f5c465b9ece4a6a4117a12a3d55fc61.zip
FreeBSD-src-e30d92806f5c465b9ece4a6a4117a12a3d55fc61.tar.gz
Increase the number of spinlocks, since libc's malloc implementation is
about to significantly increase the number of spinlocks used. Approved by: markm (mentor)
-rw-r--r--lib/libkse/thread/thr_spinlock.c2
-rw-r--r--lib/libpthread/thread/thr_spinlock.c2
-rw-r--r--lib/libthr/thread/thr_spinlock.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkse/thread/thr_spinlock.c b/lib/libkse/thread/thr_spinlock.c
index 2b2b251..823c148 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 2b2b251..823c148 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 7d5cd84..25f6337 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
OpenPOWER on IntegriCloud