Module Name: src
Committed By: ozaki-r
Date: Fri Dec 22 10:24:49 UTC 2017
Modified Files:
src/sys/sys: lwp.h
Log Message:
Check LP_BOUND is surely set in curlwp_bindx
This may find an extra call of curlwp_bindx.
To generate a diff of this commit:
cvs rdiff -u -r1.175 -r1.176 src/sys/sys/lwp.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/lwp.h
diff -u src/sys/sys/lwp.h:1.175 src/sys/sys/lwp.h:1.176
--- src/sys/sys/lwp.h:1.175 Thu Jun 8 01:09:52 2017
+++ src/sys/sys/lwp.h Fri Dec 22 10:24:49 2017
@@ -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 @@ curlwp_bind(void)
static inline void
curlwp_bindx(int bound)
{
+
+ KASSERT(curlwp->l_pflag & LP_BOUND);
curlwp->l_pflag ^= bound ^ LP_BOUND;
}