diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-06-11 04:34:31 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-06-11 04:34:31 +0000 |
commit | fff02df40147bad61d46fd954a9fe7385d727526 (patch) | |
tree | 9998d1d51015f13c38f54abe9aea1d3e90bad2a0 | |
parent | 98d3f0767aebb45a693dba093dd1094f93a5fa7c (diff) |
splassert where needed
-rw-r--r-- | sys/kern/kern_malloc_debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_malloc_debug.c b/sys/kern/kern_malloc_debug.c index 582467d5de0..b29aaf74daf 100644 --- a/sys/kern/kern_malloc_debug.c +++ b/sys/kern/kern_malloc_debug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_malloc_debug.c,v 1.16 2002/01/23 00:39:47 art Exp $ */ +/* $OpenBSD: kern_malloc_debug.c,v 1.17 2002/06/11 04:34:30 art Exp $ */ /* * Copyright (c) 1999, 2000 Artur Grabowski <art@openbsd.org> @@ -231,6 +231,8 @@ debug_malloc_allocate_free(int wait) struct vm_page *pg; struct debug_malloc_entry *md; + splassert(IPL_VM); + md = pool_get(&debug_malloc_pool, wait ? PR_WAITOK : PR_NOWAIT); if (md == NULL) return; |