Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpuser Since we are going to handle syscalls in our...



details:   https://anonhg.NetBSD.org/src/rev/7ae0d2701baa
branches:  trunk
changeset: 759075:7ae0d2701baa
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Nov 27 18:30:51 2010 +0000

description:
Since we are going to handle syscalls in our threads, limit stacksize.
(unfortunately though, pthread_attr_setstacksize() has no effect on NetBSD)

diffstat:

 lib/librumpuser/rumpuser_sp.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 7866f68227a6 -r 7ae0d2701baa lib/librumpuser/rumpuser_sp.c
--- a/lib/librumpuser/rumpuser_sp.c     Sat Nov 27 18:03:33 2010 +0000
+++ b/lib/librumpuser/rumpuser_sp.c     Sat Nov 27 18:30:51 2010 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_sp.c,v 1.18 2010/11/26 18:51:03 pooka Exp $  */
+/*      $NetBSD: rumpuser_sp.c,v 1.19 2010/11/27 18:30:51 pooka Exp $  */
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: rumpuser_sp.c,v 1.18 2010/11/26 18:51:03 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_sp.c,v 1.19 2010/11/27 18:30:51 pooka Exp $");
 
 #include <sys/types.h>
 #include <sys/atomic.h>
@@ -617,6 +617,8 @@
 
        pthread_attr_init(&pattr_detached);
        pthread_attr_setdetachstate(&pattr_detached, PTHREAD_CREATE_DETACHED);
+       /* XXX: doesn't stacksize currently work on NetBSD */
+       pthread_attr_setstacksize(&pattr_detached, 32*1024);
 
        DPRINTF(("rump_sp: server mainloop\n"));
 



Home | Main Index | Thread Index | Old Index