[PATCH] malloc: add locking to thread cache
Szabolcs Nagy
szabolcs.nagy@arm.com
Tue Jan 26 12:45:00 GMT 2016
On 26/01/16 00:25, Joern Engel wrote:
> With signals we can reenter the thread-cache. Protect against that with
> a lock. Will almost never happen in practice, it took the company five
> years to reproduce a similar race in the existing malloc. But easy to
> trigger with a targeted test.
why do you try to make malloc as-safe?
isn't it better to fix malloc usage in signal handlers?
More information about the Libc-alpha
mailing list