This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: performance of multithreading gets gradually worse under gdb
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: tromey at redhat dot com (Tom Tromey)
- Cc: markus at hyperion-imrt dot org (Markus Alber), msnyder at vmware dot com (Michael Snyder), gdb at sourceware dot org, pedro at codesourcery dot com
- Date: Fri, 4 Feb 2011 14:49:12 +0100 (CET)
- Subject: Re: performance of multithreading gets gradually worse under gdb
Tom Tromey wrote:
> >>>>> "Ulrich" == Ulrich Weigand <uweigand@de.ibm.com> writes:
> Ulrich> (Actually, now that every thread always has a thread_info, the
> Ulrich> best thing would probably be anyway to hang each thread's regcaches
> Ulrich> off the thread_info, and do away with the global list completely.)
>
> I suppose in this case, invalidating could simply clear a regcache
> instead of deleting (and subsequently recreating) it. Is that correct?
Yes, I think so. Note that we still need to (potentially) keep more than
one regcache per thread for multi-arch support. We may also need to reset
the regcache's address space before reusing it ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com