This is the mail archive of the glibc-bugs@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]

[Bug dynamic-link/22277] __dl_iterate_phdr dlpi_subs computation off


https://sourceware.org/bugzilla/show_bug.cgi?id=22277

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Not iterating over ns == 0 will of course fail to terminate the iteration
early.

Computing nloaded all the time doesn't seem to have a big benefit of avoding
the previously existing global for it either.  So just have globals for
dlpi_adds and dlpi_subs rather than being too clever here would be an
improvement IMHO
(and a TLS single-entry cache for the last used namespace would be possible).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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