From owner-p4-projects@FreeBSD.ORG Mon Feb 21 08:36:49 2005 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 54E2816A4D0; Mon, 21 Feb 2005 08:36:49 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 206A516A4CE for ; Mon, 21 Feb 2005 08:36:49 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7F0843D1F for ; Mon, 21 Feb 2005 08:36:48 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1L8am64004984 for ; Mon, 21 Feb 2005 08:36:48 GMT (envelope-from davidxu@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1L8amcv004981 for perforce@freebsd.org; Mon, 21 Feb 2005 08:36:48 GMT (envelope-from davidxu@freebsd.org) Date: Mon, 21 Feb 2005 08:36:48 GMT Message-Id: <200502210836.j1L8amcv004981@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to davidxu@freebsd.org using -f From: David Xu To: Perforce Change Reviews Subject: PERFORCE change 71447 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2005 08:36:50 -0000 http://perforce.freebsd.org/chv.cgi?CH=71447 Change 71447 by davidxu@davidxu_celeron on 2005/02/21 08:36:02 use _rtld_free_tls to free tcb. Affected files ... .. //depot/projects/davidxu_thread/src/lib/libthread/arch/i386/i386/pthread_md.c#4 edit Differences ... ==== //depot/projects/davidxu_thread/src/lib/libthread/arch/i386/i386/pthread_md.c#4 (text+ko) ==== @@ -66,7 +66,7 @@ ldt.sd.sd_gran = 0; /* no more than 1M */ tcb->tcb_ldt = i386_set_ldt(LDT_AUTO_ALLOC, &ldt, 1); if (tcb->tcb_ldt < 0) { - free(tcb); + _rtld_free_tls(tcb, sizeof(struct tcb), 16); tcb = NULL; } #endif