[Bug 200138] [PATCH] Fixed per-thread 'specific' array allocation conflict incurred in libthr by some foreign malloc libraries

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 14 21:40:35 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200138

--- Comment #19 from yuri at rawbw.com ---
Ideally everything in libthr that is fixed-sized should be allocated with the
single mmap, I think. But this is apparently not the case.

In my process, I see that 0x20000-sized block is always mmapped per-thread.
Must be something google tcmalloc is doing. I first thought this is what libthr
was doing.

But for the time being, we need the solution, so commit your patch making
struct pthread and keys live together.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-threads mailing list