Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Sep 2010 09:43:24 +0000 (UTC)
From:      David Xu <davidxu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r213163 - head/lib/libthr/thread
Message-ID:  <201009250943.o8P9hPPC056516@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: davidxu
Date: Sat Sep 25 09:43:24 2010
New Revision: 213163
URL: http://svn.freebsd.org/changeset/base/213163

Log:
  Only access unwind_disabled when _PTHREAD_FORCED_UNWIND is defined.

Modified:
  head/lib/libthr/thread/thr_clean.c

Modified: head/lib/libthr/thread/thr_clean.c
==============================================================================
--- head/lib/libthr/thread/thr_clean.c	Sat Sep 25 09:16:46 2010	(r213162)
+++ head/lib/libthr/thread/thr_clean.c	Sat Sep 25 09:43:24 2010	(r213163)
@@ -80,8 +80,9 @@ _pthread_cleanup_push(void (*routine) (v
 {
 	struct pthread	*curthread = _get_curthread();
 	struct pthread_cleanup *newbuf;
-
+#ifdef _PTHREAD_FORCED_UNWIND
 	curthread->unwind_disabled = 1;
+#endif
 	if ((newbuf = (struct pthread_cleanup *)
 	    malloc(sizeof(struct _pthread_cleanup_info))) != NULL) {
 		newbuf->routine = routine;



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