Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: ppluzhnikov@google.com (Paul Pluzhnikov)
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc][patch] Eliminate quadratic slow-down on number of solibs.
Date: Tue, 21 Apr 2009 01:06:00 -0000	[thread overview]
Message-ID: <m3y6tu24ty.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20090420232900.2456B19C4F6@localhost> (Paul Pluzhnikov's message of "Mon\, 20 Apr 2009 16\:29\:00 -0700 \(PDT\)")

>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:

Paul> We have a test case which uses ~2800 shared libraries.

Awesome.

Paul> To address the repeated scanning for objective-c, I propose adding
Paul> n_objc_syms to the struct objstats, initializing that field to ~0,
Paul> and counting them in find_methods the first time we encounter a given
Paul> objfile. If we see that objfile again, and n_objc_syms == 0, find_methods
Paul> could return immediately.

This seems reasonable.

I wonder whether it should use the generic per-objfile data storage
stuff, rather than sticking ObjC-specific stuff directly into the
objfile.

Paul> Comments?

This look reasonable enough to me, though I'd prefer someone more
familiar with breakpoints take a look.

Paul>  /* Re-set all breakpoints after symbols have been re-loaded.  */
Paul>  void
Paul> -breakpoint_re_set (void)
Paul> +breakpoint_re_set_objfile (struct objfile *objfile)

The new argument needs a description in the function header.

Paul> +void
Paul> +breakpoint_re_set (void)

This needs a function header; I think you can just copy the old one.

Tom


  reply	other threads:[~2009-04-21  1:06 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-20 23:29 Paul Pluzhnikov
2009-04-21  1:06 ` Tom Tromey [this message]
2009-04-29 21:12   ` Paul Pluzhnikov
2009-05-12  8:48     ` Joel Brobecker
2009-05-12 21:21       ` Paul Pluzhnikov
2009-05-13  9:39         ` Joel Brobecker
2009-06-22 17:10         ` Ulrich Weigand
2009-06-22 18:56           ` Paul Pluzhnikov
2009-06-22 19:30             ` Ulrich Weigand
2009-06-22 19:42               ` Paul Pluzhnikov
2009-06-22 20:06                 ` Ulrich Weigand
2009-06-22 22:04                   ` Paul Pluzhnikov
2009-06-23  0:43                     ` Ulrich Weigand
2009-06-23  1:33                       ` Paul Pluzhnikov
2009-06-23 13:32                         ` Ulrich Weigand
2009-06-22 20:41             ` Doug Evans
2009-06-22 20:48               ` Michael Snyder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3y6tu24ty.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=ppluzhnikov@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox