From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5366 invoked by alias); 18 May 2009 22:48:43 -0000 Received: (qmail 5358 invoked by uid 22791); 18 May 2009 22:48:42 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 May 2009 22:48:36 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n4IMmSqC014156; Mon, 18 May 2009 18:48:28 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n4IMmRsn015144; Mon, 18 May 2009 18:48:28 -0400 Received: from opsy.redhat.com (vpn-12-127.rdu.redhat.com [10.11.12.127]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n4IMmRKt008473; Mon, 18 May 2009 18:48:27 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 4F48C3784BC; Mon, 18 May 2009 16:48:26 -0600 (MDT) To: Paul Pluzhnikov Cc: gdb-patches@sourceware.org Subject: Re: [patch] Eliminate quadratic slow-down on number of soilibs (part 2). References: <20090501221639.4FF8A19C4E1@localhost> <8ac60eac0905181515y13a9bfd8pa7d31f6a02dfae3@mail.gmail.com> From: Tom Tromey Reply-To: tromey@redhat.com Date: Mon, 18 May 2009 22:48:00 -0000 In-Reply-To: <8ac60eac0905181515y13a9bfd8pa7d31f6a02dfae3@mail.gmail.com> (Paul Pluzhnikov's message of "Mon\, 18 May 2009 15\:15\:28 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2009-05/txt/msg00377.txt.bz2 >>>>> "Paul" == Paul Pluzhnikov writes: Paul> But isn't a better fix to just obstack_alloc the data instead of Paul> xmalloc()ing it? Proposed patch attached. Tested on Linux/x86_64, no Paul> regressions. Yeah. I was not completely sure about the rules regarding use of the objfile obstack. But, I think this should be safe. This is ok. Tom