From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32332 invoked by alias); 18 Oct 2011 19:45:18 -0000 Received: (qmail 32313 invoked by uid 22791); 18 Oct 2011 19:45:17 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-gx0-f175.google.com (HELO mail-gx0-f175.google.com) (209.85.161.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Oct 2011 19:44:58 +0000 Received: by ggnq1 with SMTP id q1so1060727ggn.20 for ; Tue, 18 Oct 2011 12:44:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.7.18 with SMTP id b18mr5885303fab.31.1318967096806; Tue, 18 Oct 2011 12:44:56 -0700 (PDT) Received: by 10.152.11.36 with HTTP; Tue, 18 Oct 2011 12:44:56 -0700 (PDT) In-Reply-To: References: <20111018171201.361304028ab94f102f827bd2@starynkevitch.net> <20111018191350.470cd6b1cd291373d5ff3f2c@starynkevitch.net> <20111018194123.1d5103e320cbed0a35363349@starynkevitch.net> Date: Tue, 18 Oct 2011 20:52:00 -0000 Message-ID: Subject: Re: adding destroyable objects into Ggc From: Gabriel Dos Reis To: Ian Lance Taylor Cc: Basile Starynkevitch , gcc@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg00297.txt.bz2 On Tue, Oct 18, 2011 at 12:50 PM, Ian Lance Taylor wrote: >=A0Before we introduced garbage collection, gcc used pools (well, obstacks= ), When I started in 1997, obstack was still there and it isn't that long ago,= so things do move fast -- for a large software like GCC. > but there were severe > problems because > pointers to one pool would be assigned to a pointer to a different > pool and then become > dangling pointers when the first pool was deleted. =A0C++ will let us > avoid that problem. Exactly.