[sheepdog] [PATCH] object cache: cleanup strbuf usage

Liu Yuan namei.unix at gmail.com
Tue Jan 8 10:03:36 CET 2013


On 01/07/2013 05:47 PM, Liu Yuan wrote:
> Don't use strbuf for hot path because it relys on the malloc(2) to allocate
> memory and will add more presure to the glibc's ptmalloc layer.
> 
> This is a defensive patch because we observed segfault of malloc or other glibc
> library calls (for e.g, opendir(2)) on top of malloc(2).

Applied.

Thanks,
Yuan



More information about the sheepdog mailing list