From owner-cvs-all@FreeBSD.ORG Mon Jun 9 01:18:52 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8A071065675; Mon, 9 Jun 2008 01:18:52 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C293B8FC22; Mon, 9 Jun 2008 01:18:52 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m591Iq85039871; Mon, 9 Jun 2008 01:18:52 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m591IqkN039870; Mon, 9 Jun 2008 01:18:52 GMT (envelope-from davidxu@repoman.freebsd.org) Message-Id: <200806090118.m591IqkN039870@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to davidxu@repoman.freebsd.org using -f From: David Xu Date: Mon, 9 Jun 2008 01:14:10 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/include pthread.h src/lib/libc/include namespace.h un-namespace.h src/lib/libthr pthread.map src/lib/libthr/thread thr_clean.c thr_private.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2008 01:18:53 -0000 davidxu 2008-06-09 01:14:10 UTC FreeBSD src repository Modified files: include pthread.h lib/libc/include namespace.h un-namespace.h lib/libthr pthread.map lib/libthr/thread thr_clean.c thr_private.h Log: SVN rev 179662 on 2008-06-09 01:14:10Z by davidxu Make pthread_cleanup_push() and pthread_cleanup_pop() as a pair of macros, use stack space to keep cleanup information, this eliminates overhead of calling malloc() and free() in thread library. Discussed on: thread@ Revision Changes Path 1.43 +21 -2 src/include/pthread.h 1.24 +0 -2 src/lib/libc/include/namespace.h 1.21 +0 -2 src/lib/libc/include/un-namespace.h 1.30 +2 -0 src/lib/libthr/pthread.map 1.6 +39 -16 src/lib/libthr/thread/thr_clean.c 1.95 +9 -6 src/lib/libthr/thread/thr_private.h