From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13818 invoked by alias); 4 Feb 2011 14:58:47 -0000 Received: (qmail 13807 invoked by uid 22791); 4 Feb 2011 14:58:47 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,SPF_SOFTFAIL,TW_EG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mtagate2.uk.ibm.com (HELO mtagate2.uk.ibm.com) (194.196.100.162) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Feb 2011 14:58:39 +0000 Received: from d06nrmr1507.portsmouth.uk.ibm.com (d06nrmr1507.portsmouth.uk.ibm.com [9.149.38.233]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p14Ewawl021762 for ; Fri, 4 Feb 2011 14:58:36 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p14EwdmP1843396 for ; Fri, 4 Feb 2011 14:58:39 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p14EwZCU026000 for ; Fri, 4 Feb 2011 07:58:36 -0700 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id p14EwY9e025992; Fri, 4 Feb 2011 07:58:34 -0700 Message-Id: <201102041458.p14EwY9e025992@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 04 Feb 2011 15:58:34 +0100 Subject: Re: performance of multithreading gets gradually worse under gdb To: tromey@redhat.com (Tom Tromey) Date: Fri, 04 Feb 2011 14:58:00 -0000 From: "Ulrich Weigand" Cc: markus@hyperion-imrt.org (Markus Alber), msnyder@vmware.com (Michael Snyder), gdb-patches@sourceware.org, pedro@codesourcery.com In-Reply-To: from "Tom Tromey" at Feb 04, 2011 07:49:49 AM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00059.txt.bz2 Tom Tromey wrote: > * thread.c (free_thread): Call free_thread_regcache. > * regcache.h (free_thread_regcache): Declare. > * regcache.c (current_regcache): Remove. > (get_thread_arch_regcache): Use thread's regcache. > (free_thread_regcache): New function. > (regcache_thread_ptid_changed): Use thread's regcache. > (invalidate_registers_maybe): New function. > (registers_changed_ptid): Use iterate_over_threads and > invalidate_registers_maybe. > * gdbthread.h (struct thread_info) : New field. Looks good to me ... Thanks, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com