This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: a new libgcov interface: __gcov_dump_all


Please take a look the updated patch. It addresses the issue of using
dlclose before dump, and potential races (between a thread closing a
library and the dumper call).

David

On Sun, Jul 20, 2014 at 11:12 PM, Nathan Sidwell <nathan@acm.org> wrote:
> On 07/20/14 21:38, Xinliang David Li wrote:
>>
>> The gcov_info chain is not duplicated -- there is already one chain
>> (linking only modules of the library) per shared library in current
>> implementation.  My change does not affect underlying behavior at all
>> -- it merely introduces a new interface to access private dumper
>> methods associated with shared libs.
>
>
> ah, got it.  thanks for clarifying.  Can't help thinking gcov_init should be
> doing this, and wondering about dlload/dlclose.  Let me think
>
> nathan

Attachment: dump_all.txt
Description: Text document


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