From owner-svn-src-head@FreeBSD.ORG Wed Sep 15 03:06:26 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C73D6106566C; Wed, 15 Sep 2010 03:06:26 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B652D8FC12; Wed, 15 Sep 2010 03:06:26 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8F36OiA047409; Wed, 15 Sep 2010 03:06:25 GMT (envelope-from davidxu@freebsd.org) Message-ID: <4C90A8B1.6060709@freebsd.org> Date: Wed, 15 Sep 2010 11:06:25 +0000 From: David Xu User-Agent: Thunderbird 2.0.0.24 (X11/20100630) MIME-Version: 1.0 To: David Xu References: <201009150256.o8F2uXwX004579@svn.freebsd.org> In-Reply-To: <201009150256.o8F2uXwX004579@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r212630 - in head/lib/libthr: . thread X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2010 03:06:26 -0000 David Xu 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 I have enabled stack unwinding to see if it will cause any problem, if it does, it can be easily turned off in Makefile.