Re: CVS commit: src/lib/libpthread
On Fri, Jan 31, 2020 at 06:55:00PM -, Christos Zoulas wrote: > In article <724af477-010b-9ddf-6ece-e23d7cf59...@gmx.com>, > Kamil Rytarowski wrote: > >-=-=-=-=-=- > >-=-=-=-=-=- > > > >On 31.01.2020 03:38, Christos Zoulas wrote: > >> And it is fixed now. > >> > >> christos > >> > > > >OK. I am going to submit a bug report upstream and get some feedback > >what is the way forward here, delaying initialization. > > I think that the way forward (on our side) is to do away with libpthread, > merge it with libc and kill all the stub nonsense. Agreed. pthread__init() does some expensive stuff like _lwp_ctl(). I think we can safely & without hacks defer a lot of that till the first pthread_create(). Andrew
Re: CVS commit: src/lib/libpthread
On 31.01.2020 19:55, Christos Zoulas wrote: > In article <724af477-010b-9ddf-6ece-e23d7cf59...@gmx.com>, > Kamil Rytarowski wrote: >> -=-=-=-=-=- >> -=-=-=-=-=- >> >> On 31.01.2020 03:38, Christos Zoulas wrote: >>> And it is fixed now. >>> >>> christos >>> >> >> OK. I am going to submit a bug report upstream and get some feedback >> what is the way forward here, delaying initialization. > > I think that the way forward (on our side) is to do away with libpthread, > merge it with libc and kill all the stub nonsense. > > christos > I was thinking about implementing custom mutexes inside jemalloc with futexes. A potential implementation could be really thin. There is just a problem that futexes still need some more time to land the sources. https://locklessinc.com/articles/mutex_cv_futex/ My thread: https://github.com/jemalloc/jemalloc/issues/1753 I have got no opinion on stubs and separated libpthread. signature.asc Description: OpenPGP digital signature
Re: CVS commit: src/lib/libpthread
In article <724af477-010b-9ddf-6ece-e23d7cf59...@gmx.com>, Kamil Rytarowski wrote: >-=-=-=-=-=- >-=-=-=-=-=- > >On 31.01.2020 03:38, Christos Zoulas wrote: >> And it is fixed now. >> >> christos >> > >OK. I am going to submit a bug report upstream and get some feedback >what is the way forward here, delaying initialization. I think that the way forward (on our side) is to do away with libpthread, merge it with libc and kill all the stub nonsense. christos
Re: CVS commit: src/lib/libpthread
On 31.01.2020 03:38, Christos Zoulas wrote: > And it is fixed now. > > christos > OK. I am going to submit a bug report upstream and get some feedback what is the way forward here, delaying initialization. signature.asc Description: OpenPGP digital signature