This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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: enabling caching for dl_iterate_phdr()


> How about extending struct dl_phdr_info and passing an counter in it
> to dl_iterate_phdr's callback?

That is easy enough.  OTOH, it's arguably not much harder for the callback
to just compare the results with saved results from the last run and decide
that way no new work has to be done.  That works with existing glibc's too.


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