From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: [solved] Re: Weak references and GC Date: Sat, 10 Sep 2005 00:00:44 +0100 Message-ID: <87u0gtetib.fsf@ossau.uklinux.net> References: <873bogsdm6.fsf@ossau.uklinux.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1126306966 22079 80.91.229.2 (9 Sep 2005 23:02:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Sep 2005 23:02:46 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Sep 10 01:02:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EDrsd-0000dp-G1 for guile-user@m.gmane.org; Sat, 10 Sep 2005 01:01:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EDrsc-0001FK-V7 for guile-user@m.gmane.org; Fri, 09 Sep 2005 19:01:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EDrsL-0001B4-BG for guile-user@gnu.org; Fri, 09 Sep 2005 19:01:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EDrsC-00015p-M6 for guile-user@gnu.org; Fri, 09 Sep 2005 19:01:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EDrsC-00014f-C6 for guile-user@gnu.org; Fri, 09 Sep 2005 19:01:32 -0400 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EDrrk-0005TT-Qh for guile-user@gnu.org; Fri, 09 Sep 2005 19:01:05 -0400 Original-Received: from laruns (host81-130-141-16.in-addr.btopenworld.com [81.130.141.16]) by mail3.uklinux.net (Postfix) with ESMTP id 5AFD4409FC6 for ; Fri, 9 Sep 2005 23:01:01 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id 1EE076F71C for ; Sat, 10 Sep 2005 00:00:45 +0100 (BST) Original-To: Guile Users In-Reply-To: <873bogsdm6.fsf@ossau.uklinux.net> (Neil Jerram's message of "Wed, 07 Sep 2005 23:43:29 +0100") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:4731 Archived-At: Neil Jerram writes: > I'm having trouble with lists (actually source code expressions) that > are weakly stored in several places and never being GC'd. [...] For anyone interested... the thing preventing GC was a closure created in an environment that included the source code expression as a local variable. Even though the closure's code did not reference the variable, the closure's environment still includes that variable and its value, and so protects the value from GC. Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user