Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2010 09:43:54 +0000
From:      David Xu <davidxu@freebsd.org>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, kabaev@gmail.com
Subject:   Re: svn commit: r212630 - in head/lib/libthr: . thread
Message-ID:  <4C91E6DA.8050907@freebsd.org>
In-Reply-To: <20100915.081234.83306312380114674.imp@bsdimp.com>
References:  <201009150256.o8F2uXwX004579@svn.freebsd.org>	<20100914231728.33ca7466@kan.dnsalias.net> <20100915.081234.83306312380114674.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
M. Warner Losh wrote:
> In message: <20100914231728.33ca7466@kan.dnsalias.net>
>             Alexander Kabaev <kabaev@gmail.com> writes:
> : On Wed, 15 Sep 2010 02:56:33 +0000 (UTC)
> : David Xu <davidxu@FreeBSD.org> wrote:
> : 
> : > Author: davidxu
> : > Date: Wed Sep 15 02:56:32 2010
> : > New Revision: 212630
> : > URL: http://svn.freebsd.org/changeset/base/212630
> : > 
> : > Log:
> : >   add code to support stack unwinding when thread exits. note that
> : > only defer-mode cancellation works, asynchrnous mode does not work
> : > because it lacks of libuwind's support. stack unwinding is not
> : > enabled unless LIBTHR_UNWIND_STACK is defined in Makefile.
> : > 
> : > Modified:
> : >   head/lib/libthr/Makefile
> : >   head/lib/libthr/thread/thr_clean.c
> : >   head/lib/libthr/thread/thr_create.c
> : >   head/lib/libthr/thread/thr_exit.c
> : >   head/lib/libthr/thread/thr_init.c
> : >   head/lib/libthr/thread/thr_private.h
> : > 
> : > Modified: head/lib/libthr/Makefile
> : > ==============================================================================
> : > --- head/lib/libthr/Makefile	Wed Sep 15 01:21:30 2010
> : > (r212629) +++ head/lib/libthr/Makefile	Wed Sep 15 02:56:32
> : > 2010	(r212630) @@ -25,6 +25,14 @@
> : > CFLAGS+=-I${.CURDIR}/../../libexec/rtld-
> : > CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_CPUARCH}
> : > CFLAGS+=-I${.CURDIR}/../libthread_db CFLAGS+=-Winline
> : > +
> : > +LIBTHR_UNWIND_STACK=yes
> : > +
> : > +.ifdef LIBTHR_UNWIND_STACK
> : > +CFLAGS+=-I${.CURDIR}/../../contrib/gcc -fexceptions 
> : > +CFLAGS+=-D_PTHREAD_FORCED_UNWIND
> : > +.endif
> : > +
> : >
> : 
> : Reaching into bowels of GCC like that is never good.
> 
> Would this pulling in GPL'd code?
> 
> Warner
> 
It's being resolved.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C91E6DA.8050907>