Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Check LP_BOUND is surely set in curlwp_bindx
details: https://anonhg.NetBSD.org/src/rev/413664ee46fa
branches: trunk
changeset: 358331:413664ee46fa
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Fri Dec 22 10:24:49 2017 +0000
description:
Check LP_BOUND is surely set in curlwp_bindx
This may find an extra call of curlwp_bindx.
diffstat:
sys/sys/lwp.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r ff61830a9bc8 -r 413664ee46fa sys/sys/lwp.h
--- a/sys/sys/lwp.h Fri Dec 22 09:53:06 2017 +0000
+++ b/sys/sys/lwp.h Fri Dec 22 10:24:49 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lwp.h,v 1.175 2017/06/08 01:09:52 chs Exp $ */
+/* $NetBSD: lwp.h,v 1.176 2017/12/22 10:24:49 ozaki-r Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007, 2008, 2009, 2010
@@ -543,6 +543,8 @@
static inline void
curlwp_bindx(int bound)
{
+
+ KASSERT(curlwp->l_pflag & LP_BOUND);
curlwp->l_pflag ^= bound ^ LP_BOUND;
}
Home |
Main Index |
Thread Index |
Old Index