Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Permanent node doesn't need a log, plus the log get...
details: https://anonhg.NetBSD.org/src/rev/52a3b90f5807
branches: trunk
changeset: 973163:52a3b90f5807
user: maxv <maxv%NetBSD.org@localhost>
date: Mon Jun 22 16:21:29 2020 +0000
description:
Permanent node doesn't need a log, plus the log gets leaked anyway. Found
by kLSan.
diffstat:
sys/kern/kern_lwp.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r df1ae4c0b8ef -r 52a3b90f5807 sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c Mon Jun 22 16:14:18 2020 +0000
+++ b/sys/kern/kern_lwp.c Mon Jun 22 16:21:29 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lwp.c,v 1.241 2020/06/06 22:26:47 ad Exp $ */
+/* $NetBSD: kern_lwp.c,v 1.242 2020/06/22 16:21:29 maxv 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.241 2020/06/06 22:26:47 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.242 2020/06/22 16:21:29 maxv Exp $");
#include "opt_ddb.h"
#include "opt_lockdebug.h"
@@ -325,9 +325,7 @@
static void
sysctl_kern_lwp_setup(void)
{
- struct sysctllog *clog = NULL;
-
- sysctl_createv(&clog, 0, NULL, NULL,
+ sysctl_createv(NULL, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
CTLTYPE_INT, "maxlwp",
SYSCTL_DESCR("Maximum number of simultaneous threads"),
Home |
Main Index |
Thread Index |
Old Index