svn commit: r213163 - head/lib/libthr/thread

David Xu davidxu at FreeBSD.org
Sat Sep 25 09:43:25 UTC 2010


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;


More information about the svn-src-head mailing list