libpthread: Store self in __thread variable instead of threadvar (was: [SCM] POSIX threading library branch, master, updated. 25260994c812050a5d7addf125cdc90c911ca5c1)

2012-08-10 Thread Thomas Schwinge
Hi! On Thu, 26 Apr 2012 23:38:56 +, Samuel Thibault wrote: > commit 25260994c812050a5d7addf125cdc90c911ca5c1 > Author: Samuel Thibault > Date: Fri Apr 27 01:32:54 2012 + > > Store self in __thread variable instead of threadvar You have reverted this patch for Debian, as you had

Re: libpthread: caching of data structures and kernel resources

2012-08-10 Thread Neal H. Walfield
At Fri, 10 Aug 2012 09:15:01 +0200, Neal H. Walfield wrote: > > Why does Viengoos in > > sysdeps/viengoos/pt-thread-halt.c:__pthread_thread_halt have to do > > different things depending on whether »thread == _pthread_self« or not? > > I'm assuming that on Mach, we can just always do thread_suspend

Re: libpthread: caching of data structures and kernel resources

2012-08-10 Thread Neal H. Walfield
Hi, Thomas, At Fri, 10 Aug 2012 01:17:30 +0200, Thomas Schwinge wrote: > libpthread applies some caching of data structures > (cf. __pthread_free_threads; »state == PTHREAD_TERMINATED«) which after a > thread has exited can be re-used for a new one. > ... > Is this an optimization, assuming the se