Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern assertion
details: https://anonhg.NetBSD.org/src/rev/94bdf5caa44e
branches: trunk
changeset: 767661:94bdf5caa44e
user: yamt <yamt%NetBSD.org@localhost>
date: Tue Jul 26 13:03:57 2011 +0000
description:
assertion
diffstat:
sys/kern/kern_lwp.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 70620c2f4947 -r 94bdf5caa44e sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c Tue Jul 26 12:59:41 2011 +0000
+++ b/sys/kern/kern_lwp.c Tue Jul 26 13:03:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lwp.c,v 1.159 2011/06/13 21:32:42 matt Exp $ */
+/* $NetBSD: kern_lwp.c,v 1.160 2011/07/26 13:03:57 yamt Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -211,7 +211,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.159 2011/06/13 21:32:42 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.160 2011/07/26 13:03:57 yamt Exp $");
#include "opt_ddb.h"
#include "opt_lockdebug.h"
@@ -1040,6 +1040,7 @@
ksiginfoq_t kq;
KASSERT(l != curlwp);
+ KASSERT(last || mutex_owned(p->p_lock));
/*
* If this was not the last LWP in the process, then adjust
Home |
Main Index |
Thread Index |
Old Index