Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern lwp_exit(): add a warning about (l != curlwp)



details:   https://anonhg.NetBSD.org/src/rev/ecb1181f3cf8
branches:  trunk
changeset: 1010794:ecb1181f3cf8
user:      ad <ad%NetBSD.org@localhost>
date:      Sat Jun 06 22:26:47 2020 +0000

description:
lwp_exit(): add a warning about (l != curlwp)

diffstat:

 sys/kern/kern_lwp.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 82709f372037 -r ecb1181f3cf8 sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c       Sat Jun 06 22:23:59 2020 +0000
+++ b/sys/kern/kern_lwp.c       Sat Jun 06 22:26:47 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_lwp.c,v 1.240 2020/06/01 13:58:14 thorpej Exp $   */
+/*     $NetBSD: kern_lwp.c,v 1.241 2020/06/06 22:26:47 ad Exp $        */
 
 /*-
  * Copyright (c) 2001, 2006, 2007, 2008, 2009, 2019, 2020
@@ -217,7 +217,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.240 2020/06/01 13:58:14 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.241 2020/06/06 22:26:47 ad Exp $");
 
 #include "opt_ddb.h"
 #include "opt_lockdebug.h"
@@ -1054,6 +1054,8 @@
 
 /*
  * Exit an LWP.
+ *
+ * *** WARNING *** This can be called with (l != curlwp) in error paths.
  */
 void
 lwp_exit(struct lwp *l)



Home | Main Index | Thread Index | Old Index