From owner-cvs-all Wed Jul 14 11: 6:29 1999 Delivered-To: cvs-all@freebsd.org Received: from arc.hq.cti.ru (arc.hq.cti.ru [195.34.40.3]) by hub.freebsd.org (Postfix) with ESMTP id A931715437; Wed, 14 Jul 1999 11:06:18 -0700 (PDT) (envelope-from tejblum@arc.hq.cti.ru) Received: from arc.hq.cti.ru (localhost [127.0.0.1]) by arc.hq.cti.ru (8.9.3/8.9.3) with ESMTP id WAA56422; Wed, 14 Jul 1999 22:05:53 +0400 (MSD) (envelope-from tejblum@arc.hq.cti.ru) Message-Id: <199907141805.WAA56422@arc.hq.cti.ru> X-Mailer: exmh version 2.0zeta 7/24/97 To: Peter Wemm Cc: Dmitrij Tejblum , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc_r/uthread pthread_private.h uthread_init.c In-reply-to: Your message of "Thu, 15 Jul 1999 01:30:35 +0800." <19990714173035.A5E5281@overcee.netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 14 Jul 1999 22:05:52 +0400 From: Dmitrij Tejblum Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > Dmitrij Tejblum wrote: > > dt 1999/07/12 09:09:31 PDT > > > > Modified files: > > lib/libc_r/uthread pthread_private.h uthread_init.c > > Log: > > Use USRSTACK (defined in ) to get top of the initial sta > ck. > > Umm, this is not a good way to do it as it is dependent on kernel size > adjustments. It would be far better to use the sysctl kern.usrstack > instead, and perhaps falling back to the predefined USRSTACK if for some > reason the variable isn't available. Oops, you are right. I was under the impression of PTHREAD_STACK_TOP. Anyway, IMO it would be even more better to stop mmap thread stacks, or at least not mmap them in the process stack. That is, lose the need to know the thing at all. I don't know why libc_r playing with the process stack. Dima To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message