summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-12-28 21:21:27 +0000
committerjhb <jhb@FreeBSD.org>2004-12-28 21:21:27 +0000
commit38cd373d81b641f34f18ad624221c77685cd64a4 (patch)
tree6b2e509e7f524fc3eb08aaee127d40384d569c2b /sys/kern
parentc30f74a05b11c78f6b7945d2c0aabaf3f406fc9a (diff)
downloadFreeBSD-src-38cd373d81b641f34f18ad624221c77685cd64a4.zip
FreeBSD-src-38cd373d81b641f34f18ad624221c77685cd64a4.tar.gz
- Up the WITNESS_COUNT macro from 200 to 1024 to support the growing number
of lock types in the kernel. This results in an increase of witness data usage from ~145k to ~280k on i386 for kernels with 'options WITNESS'. - Remove the unused witness malloc bucket. Submitted by: Michal Mertl mime at traveller dot cz (1)
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_witness.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index c67359e..47f1b55 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -106,7 +106,7 @@ __FBSDID("$FreeBSD$");
/* Define this to check for blessed mutexes */
#undef BLESSING
-#define WITNESS_COUNT 200
+#define WITNESS_COUNT 1024
#define WITNESS_CHILDCOUNT (WITNESS_COUNT * 4)
/*
* XXX: This is somewhat bogus, as we assume here that at most 1024 threads
@@ -191,7 +191,6 @@ static void witness_display_list(void(*prnt)(const char *fmt, ...),
static void witness_display(void(*)(const char *fmt, ...));
#endif
-MALLOC_DEFINE(M_WITNESS, "witness", "witness structure");
SYSCTL_NODE(_debug, OID_AUTO, witness, CTLFLAG_RW, 0, "Witness Locking");
/*
OpenPOWER on IntegriCloud