Re: performance of multithreading gets gradually worse under gdb

Ulrich Weigand
2011-02-04T13:49:30Z

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