public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* enabling caching for dl_iterate_phdr()
@ 2003-12-16 19:55 David Mosberger
  2003-12-23 22:24 ` Roland McGrath
  0 siblings, 1 reply; 14+ messages in thread
From: David Mosberger @ 2003-12-16 19:55 UTC (permalink / raw)
  To: drepper; +Cc: libc-hacker

Would it be possible to add two atomic counters, dl_load_additions and
dl_load_removals, which would get incremented whenever something is a
phdr is added to/removed from the list that is traversed by
dl_iterate_phdr()?

The motivation for this is that this would let me solve a
long-standing problem with libunwind where I'd like to cache
unwind-info, but cannot do so safely because there is no way for
libunwind to detect efficiently when a shared object may have gotten
unloaded.  Having both the "additions" and "removals" counters would
make it possible to cache both negative and positive information,
though I'd be quite happy if there was at least a "removals" counter.

Any opinions?  I guess the alternative that was mentioned in the past
was to use callbacks, but that seems very dangerous in regards to
deadlock etc.

	--david

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-01-26 23:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <16387.9755.753294.37588@napali.hpl.hp.com>
2004-01-17  0:57 ` enabling caching for dl_iterate_phdr() Roland McGrath
2004-01-17  1:39   ` Jakub Jelinek
2004-01-17  1:40     ` Roland McGrath
2004-01-17  1:51     ` David Mosberger
2004-01-22  0:35     ` David Mosberger
2004-01-22  8:39       ` Jakub Jelinek
2004-01-24  5:54         ` David Mosberger
2004-01-24 20:27           ` Ulrich Drepper
2004-01-26 21:48             ` David Mosberger
2004-01-26 22:39               ` Ulrich Drepper
2004-01-26 22:58                 ` Roland McGrath
2004-01-26 23:03                 ` David Mosberger
2003-12-16 19:55 David Mosberger
2003-12-23 22:24 ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).