Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpkern Rumpkernel has its own thread deal...
details: https://anonhg.NetBSD.org/src/rev/546f74fc06ad
branches: trunk
changeset: 997473:546f74fc06ad
user: hannken <hannken%NetBSD.org@localhost>
date: Sat Mar 09 09:02:38 2019 +0000
description:
Rumpkernel has its own thread deallocation. Add missing fstrans_lwp_dtor()
to lwproc_freelwp().
PR bin/50350: rump/rumpkern/t_sp/stress_{long,short} fail on Core 2 Quad
diffstat:
sys/rump/librump/rumpkern/emul.c | 13 +++++++++++--
sys/rump/librump/rumpkern/lwproc.c | 6 ++++--
2 files changed, 15 insertions(+), 4 deletions(-)
diffs (65 lines):
diff -r 2cb295118662 -r 546f74fc06ad sys/rump/librump/rumpkern/emul.c
--- a/sys/rump/librump/rumpkern/emul.c Sat Mar 09 08:42:25 2019 +0000
+++ b/sys/rump/librump/rumpkern/emul.c Sat Mar 09 09:02:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: emul.c,v 1.189 2018/12/05 19:56:49 christos Exp $ */
+/* $NetBSD: emul.c,v 1.190 2019/03/09 09:02:38 hannken Exp $ */
/*
* Copyright (c) 2007-2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.189 2018/12/05 19:56:49 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.190 2019/03/09 09:02:38 hannken Exp $");
#include <sys/param.h>
#include <sys/cprng.h>
@@ -292,6 +292,15 @@
}
__weak_alias(fstrans_done,rump_fstrans_done);
+
+void rump_fstrans_lwp_dtor(struct lwp *);
+void
+rump_fstrans_lwp_dtor(struct lwp *l)
+{
+
+}
+__weak_alias(fstrans_lwp_dtor,rump_fstrans_lwp_dtor);
+
/*
* Provide weak aliases for tty routines used by printf.
* They will be used unless the rumpkern_tty component is present.
diff -r 2cb295118662 -r 546f74fc06ad sys/rump/librump/rumpkern/lwproc.c
--- a/sys/rump/librump/rumpkern/lwproc.c Sat Mar 09 08:42:25 2019 +0000
+++ b/sys/rump/librump/rumpkern/lwproc.c Sat Mar 09 09:02:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lwproc.c,v 1.40 2016/04/24 07:45:10 martin Exp $ */
+/* $NetBSD: lwproc.c,v 1.41 2019/03/09 09:02:38 hannken Exp $ */
/*
* Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved.
@@ -28,11 +28,12 @@
#define RUMP__CURLWP_PRIVATE
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lwproc.c,v 1.40 2016/04/24 07:45:10 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lwproc.c,v 1.41 2019/03/09 09:02:38 hannken Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
#include <sys/filedesc.h>
+#include <sys/fstrans.h>
#include <sys/kauth.h>
#include <sys/kmem.h>
#include <sys/lwp.h>
@@ -326,6 +327,7 @@
if (l->l_name)
kmem_free(l->l_name, MAXCOMLEN);
+ fstrans_lwp_dtor(l);
lwp_finispecific(l);
lwproc_curlwpop(RUMPUSER_LWP_DESTROY, l);
Home |
Main Index |
Thread Index |
Old Index