From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17110 invoked by alias); 10 Apr 2011 22:33:04 -0000 Received: (qmail 17094 invoked by uid 22791); 10 Apr 2011 22:33:03 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-yi0-f47.google.com (HELO mail-yi0-f47.google.com) (209.85.218.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 10 Apr 2011 22:32:57 +0000 Received: by yia13 with SMTP id 13so2989034yia.20 for ; Sun, 10 Apr 2011 15:32:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.139.15 with SMTP id r15mr2939186ann.137.1302474776209; Sun, 10 Apr 2011 15:32:56 -0700 (PDT) Received: by 10.100.214.4 with HTTP; Sun, 10 Apr 2011 15:32:55 -0700 (PDT) In-Reply-To: References: <4D9D56F4.3050203@gmail.com> <4D9F1D63.9010509@redhat.com> Date: Sun, 10 Apr 2011 22:33:00 -0000 Message-ID: Subject: Re: [gc-improv] Permanent vs function RTL obstack fix From: Steven Bosscher To: Laurynas Biveinis Cc: Jeff Law , gcc-patches@gcc.gnu.org, Richard Guenther Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-04/txt/msg00721.txt.bz2 On Sun, Apr 10, 2011 at 8:22 PM, Laurynas Biveinis wrote: > It is certainly true that moving away from GC will make some kinds of > bugs possible again, but I hope that not enough to be an unmanageable > concern. One thing that may help, is to poison parts of released obstacks, instead of actually releasing the memory. A bit like the poison mechanism of GGC. An obstack memory checking mechanism similar to gcac would also be nice. Something that walks all RTL and verifies that RTX objects are allocated on the obstacks where you'd expect them to be (via _obstack_allocated_p). I don't think GCC had any checking like that 20 years ago... Ciao! Steven