summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-03-10 20:24:54 +0000
committerphk <phk@FreeBSD.org>2003-03-10 20:24:54 +0000
commit780911f210a408f6be3a3db4c8109f17c3d283af (patch)
tree58f556490d5279841df0d6311a6c92df36c79730 /sys/kern/kern_malloc.c
parenta824da445bed7e292d83aba70b7074cabfb0a148 (diff)
downloadFreeBSD-src-780911f210a408f6be3a3db4c8109f17c3d283af.zip
FreeBSD-src-780911f210a408f6be3a3db4c8109f17c3d283af.tar.gz
PHCC[1]:
I had commented the #ifdef INVARIANTS checks out to make sure I ran this code in all kernels and forgot to comment the #ifdefs back in before I committed. Spotted by: bmilekic [1] PHCC = Pointy Hat Correction Commit
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r--sys/kern/kern_malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 978fc6a..34f791a 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -167,7 +167,7 @@ malloc(size, type, flags)
#endif
register struct malloc_type *ksp = type;
-/* #ifdef INVARIANTS */
+#ifdef INVARIANTS
/*
* To make sure that WAITOK or NOWAIT is set, but not more than
* one, and check against the API botches that are common.
@@ -183,7 +183,7 @@ malloc(size, type, flags)
once++;
}
}
-/* #endif */
+#endif
#if 0
if (size == 0)
Debugger("zero size malloc");
OpenPOWER on IntegriCloud