This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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]

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


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