From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Livshin Newsgroups: gmane.lisp.guile.devel Subject: Re: lazy sweeping. Date: Mon, 29 Jul 2002 13:14:18 +0300 Organization: The Church of God the Utterly Indifferent Sender: guile-devel-admin@gnu.org Message-ID: References: <15684.32520.154258.348830@blauw.xs4all.nl> <15685.3950.266394.345360@meddo.cs.uu.nl> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1027937682 18157 127.0.0.1 (29 Jul 2002 10:14:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 29 Jul 2002 10:14:42 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Z7Y1-0004ik-00 for ; Mon, 29 Jul 2002 12:14:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17Z7YP-00035j-00; Mon, 29 Jul 2002 06:15:05 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17Z7Xf-00035C-00 for ; Mon, 29 Jul 2002 06:14:19 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.33 #1 (Debian)) id 17Z7XC-0004hA-00 for ; Mon, 29 Jul 2002 12:13:50 +0200 Original-To: guile-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.33 #1 (Debian)) id 17Z7XC-0004h2-00 for ; Mon, 29 Jul 2002 12:13:50 +0200 Original-Path: not-for-mail Original-Newsgroups: gmane.lisp.guile.devel Original-Lines: 30 Original-NNTP-Posting-Host: laredo.verisity.com Original-X-Trace: main.gmane.org 1027937630 16921 212.150.223.230 (29 Jul 2002 10:13:50 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Mon, 29 Jul 2002 10:13:50 +0000 (UTC) Mail-copies-to: never User-Agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Honest Recruiter, i686-pc-linux) Cancel-Lock: sha1:26ZBRHwh04N9UyXdbO7PITpIgUs= Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:876 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:876 Han-Wen Nienhuys writes: > guile@cmm.kakpryg.net writes: >> >> did you consider various finalizations? like closing file descriptors >> of dead ports, sort of fing. >> >> if you just lazy-sweep naively, some external resources may never get >> freed. > > Ah, good idea. You mean when exiting GUILE completely? I'll add > that. er. perhaps I was confused. if I remember correctly, Guile has some logic to cope with suddenly running out of file descriptors: it calls GC in the hope that some port objects are unreachable. I guess now you don't have to nesessarily do a full GC right away, instead you may want to finish the sweep first and see if that helps, and only do a new GC if finishing the sweep haven't helped. hmm. so that's not as fiddly as I thought, and probably works as it is. ditto for malloced memory, I guess. sorry. -- Paranoid schizophrenics outnumber their enemies at least two to one. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel