Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern remove simplelockrecurse, it's no longer needed.
details: https://anonhg.NetBSD.org/src/rev/25dfe8356cd3
branches: trunk
changeset: 474757:25dfe8356cd3
user: chs <chs%NetBSD.org@localhost>
date: Mon Jul 19 03:17:42 1999 +0000
description:
remove simplelockrecurse, it's no longer needed.
diffstat:
sys/kern/kern_malloc.c | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
diffs (51 lines):
diff -r 6ea88344f833 -r 25dfe8356cd3 sys/kern/kern_malloc.c
--- a/sys/kern/kern_malloc.c Mon Jul 19 02:30:43 1999 +0000
+++ b/sys/kern/kern_malloc.c Mon Jul 19 03:17:42 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_malloc.c,v 1.44 1999/06/04 23:38:42 thorpej Exp $ */
+/* $NetBSD: kern_malloc.c,v 1.45 1999/07/19 03:17:42 chs Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -196,9 +196,6 @@
int copysize;
const char *savedtype;
#endif
-#ifdef LOCKDEBUG
- extern int simplelockrecurse;
-#endif
#ifdef KMEMSTATS
register struct kmemstats *ksp = &kmemstats[type];
@@ -223,10 +220,6 @@
#ifdef DIAGNOSTIC
copysize = 1 << indx < MAX_COPY ? 1 << indx : MAX_COPY;
#endif
-#ifdef LOCKDEBUG
- if (flags & M_NOWAIT)
- simplelockrecurse++;
-#endif
if (kbp->kb_next == NULL) {
kbp->kb_last = NULL;
if (size > MAXALLOCSAVE)
@@ -248,9 +241,6 @@
*/
if ((flags & M_NOWAIT) == 0)
panic("malloc: out of space in kmem_map");
-#ifdef LOCKDEBUG
- simplelockrecurse--;
-#endif
splx(s);
return ((void *) NULL);
}
@@ -381,10 +371,6 @@
domlog(va, size, type, 1, file, line);
#endif
splx(s);
-#ifdef LOCKDEBUG
- if (flags & M_NOWAIT)
- simplelockrecurse--;
-#endif
return ((void *) va);
}
Home |
Main Index |
Thread Index |
Old Index