On Mon, Mar 28, 2016 at 11:27:32AM +0200, Otto Moerbeek wrote: > On Wed, Mar 23, 2016 at 08:00:19AM +0100, Otto Moerbeek wrote: > > > Hi, > > > > first diff that seems to work. Tested on amd64 and compile tested on > > sparc64. > > > > It is alo available at http://www.drijf.net/openbsd/malloc > > > > Form the README: > > > > The diff should be applied while in /usr/src/lib, it will patch > > both librthreads as as well as libc. > > > > THIS IS WORK IN PROGRESS. It contains multiple things that should > > be improved. To name a few things: > > > > - Curently fixed at 4 pools with a fixed thread -> pool mapping. > > - All pools are always initialized, even for single threaded programs, where > > only one pool is used. > > - Especially realloc gets quite a bit uglier. > > - I'm pondering storing the thread -> pool mapping in the thread > > struct instead of computing it each time from the tcb address. > > > > -Otto > > > > Second diff. Only one person (Stefan Kempf, thanks!) gave feedback... > > A race condition was fixed in the init code. But there remain race > problems in the init code. I will be working on that the coming time. > > Please be aware that to make this code ready for commit, I need > feedback/tests/reviews. There's no way this code will end up in the tree > without those.
I don't see regressions on amd64. -- Juan Francisco Cantero Hurtado http://juanfra.info