Date: Mon, 21 Feb 2005 08:36:48 GMT From: David Xu <davidxu@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 71447 for review Message-ID: <200502210836.j1L8amcv004981@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502210836.j1L8amcv004981>