This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Understanding why getaddrinfo_a and __gai_enqueue_request use recursive locks


On 09/25/2017 07:23 PM, Hal Murray wrote:
I think you would need a way to annotate helper functions as needing a lock
and specify the lock.  It may also take annotations in the caller function.

Do you mean annotations to find resource leaks?

As far as free software tools are concerned, using C++ and RAII looks like the only feasible solution (with strong tool support) right now.

Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]