From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.devel Subject: Re: module GC bug Date: Mon, 01 Aug 2005 13:04:45 +0200 Message-ID: <42EE01CD.3040409@xs4all.nl> References: <42A8D188.20007@xs4all.nl> <878xzma4o6.fsf@zagadka.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1122894634 1834 80.91.229.2 (1 Aug 2005 11:10:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Aug 2005 11:10:34 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Aug 01 13:10:28 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DzYBf-0008DU-Ot for guile-devel@m.gmane.org; Mon, 01 Aug 2005 13:10:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzYEJ-0003I4-8P for guile-devel@m.gmane.org; Mon, 01 Aug 2005 07:13:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DzY9S-0001a5-49 for guile-devel@gnu.org; Mon, 01 Aug 2005 07:08:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DzY9P-0001Ys-Rd for guile-devel@gnu.org; Mon, 01 Aug 2005 07:08:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzY9P-0001Xd-6d for guile-devel@gnu.org; Mon, 01 Aug 2005 07:08:07 -0400 Original-Received: from [194.109.24.34] (helo=smtp-vbr14.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DzYIG-0007qU-8o for guile-devel@gnu.org; Mon, 01 Aug 2005 07:17:16 -0400 Original-Received: from [192.168.123.107] (muurbloem.xs4all.nl [213.84.26.127]) by smtp-vbr14.xs4all.nl (8.13.3/8.13.3) with ESMTP id j71B4jkD096884; Mon, 1 Aug 2005 13:04:45 +0200 (CEST) (envelope-from hanwen@xs4all.nl) User-Agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720) X-Accept-Language: en-us, en Original-To: Marius Vollmer In-Reply-To: <878xzma4o6.fsf@zagadka.de> X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5180 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:5180 Marius Vollmer wrote: > Han-Wen Nienhuys writes: > > >>I've found a memory leak in GUILE. >> >>The contents of modules are not garbage collected. > > > I believe this is fixed in CVS HEAD now in the 'proper' way: > > guile> (define g (make-guardian)) > guile> (g (make-module)) > guile> (gc) > guile> (g) > # > > The fix consists of storing procedure properties in a weak key > hashtable (as you did), and fixing weak hashtables so that cycles from > the value back to the key get properly collected. > Thanks! > I think this change is a too large to go into 1.6, tho. Is there a > workaround that you could put into your code, such as > > (set-procedure-property! (module-eval-closure M) 'module #f) > > in an appropriate place? Yes, I've already done that. Any idea of when we will see this in a release? -- Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel