From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1118 invoked by alias); 20 Jul 2009 16:52:48 -0000 Received: (qmail 1110 invoked by uid 22791); 20 Jul 2009 16:52:48 -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, 20 Jul 2009 16:52:38 +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 n6KGoVfX002672; Mon, 20 Jul 2009 12:50:31 -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 n6KGoTAK026324; Mon, 20 Jul 2009 12:50:30 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n6KGoSYx029419; Mon, 20 Jul 2009 12:50:29 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 063473782DD; Mon, 20 Jul 2009 10:45:56 -0600 (MDT) To: Thiago Jung Bauermann Cc: gdb-patches@sourceware.org, Daniel Jacobowitz , Vladimir Prus Subject: Re: Value reference counting References: <20090717184152.GA6863@caradoc.them.org> <20090717190418.GA9041@caradoc.them.org> <200907201022.19758.thiago.bauermann@gmail.com> From: Tom Tromey Reply-To: Tom Tromey Date: Mon, 20 Jul 2009 17:34:00 -0000 In-Reply-To: <200907201022.19758.thiago.bauermann@gmail.com> (Thiago Jung Bauermann's message of "Mon\, 20 Jul 2009 10\:22\:19 -0300") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (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-07/txt/msg00489.txt.bz2 >>>>> "Thiago" == Thiago Jung Bauermann writes: Daniel> free_all_values can have a very long interval. But it looks like Daniel> breakpoint commands always run it, so not unbounded user behavior. Daniel> What about breakpoint conditions? Is anything released and free'd Daniel> during a condition check going to linger until we stop? Thiago> I don't like the idea of having the GC being ran at unpredictably long Thiago> intervals. Aren't we aiming at debugging big fat apps with big insane Thiago> debugging sessions afterall? Running free_all_values at a long interval is potentially a problem. However, any particular problem here can (most likely) be resolved locally, using value_mark and value_free_to_mark in the code that causes too much allocation. Tom