lkml.org 
[lkml]   [2013]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 7/9] liblockdep: Support using LD_PRELOAD
On Tue, May 28, 2013 at 03:35:36PM -0400, Sasha Levin wrote:
> On 05/22/2013 05:24 AM, Peter Zijlstra wrote:
> > Do we still need this with the glibc __pthread_* static initialization?
>
> Sadly we do.
>
> We need to deal with the two things that cause allocation in our code (because
> they loop back into our code via malloc()->malloc_init()->pthread_mutex_init() ).
>
> The first one was the glibc trick to avoid the malloc() caused by dlsym(). The
> second one is the malloc() we do when we allocate new lock. Static allocation
> deals with that one.

OK.. fair enough


\
 
 \ /
  Last update: 2013-05-29 14:01    [W:0.133 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site