From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Herbert Euler Newsgroups: gmane.emacs.devel Subject: Is there any possible memory leak in GC? Date: Thu, 13 Dec 2007 23:21:08 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1197559300 22819 80.91.229.12 (13 Dec 2007 15:21:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Dec 2007 15:21:40 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 13 16:21:47 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J2psY-0006m1-Q0 for ged-emacs-devel@m.gmane.org; Thu, 13 Dec 2007 16:21:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2psG-0007Fh-1T for ged-emacs-devel@m.gmane.org; Thu, 13 Dec 2007 10:21:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J2psC-0007Ei-3z for emacs-devel@gnu.org; Thu, 13 Dec 2007 10:21:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J2ps9-0007Ct-SJ for emacs-devel@gnu.org; Thu, 13 Dec 2007 10:21:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2ps9-0007Cq-PB for emacs-devel@gnu.org; Thu, 13 Dec 2007 10:21:13 -0500 Original-Received: from bay0-omc2-s21.bay0.hotmail.com ([65.54.246.157]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J2ps9-00056F-Fp for emacs-devel@gnu.org; Thu, 13 Dec 2007 10:21:13 -0500 Original-Received: from BAY143-W11 ([65.55.154.46]) by bay0-omc2-s21.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 13 Dec 2007 07:21:10 -0800 X-Originating-IP: [222.130.207.217] Importance: Normal X-OriginalArrivalTime: 13 Dec 2007 15:21:10.0165 (UTC) FILETIME=[CA336450:01C83D9B] X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85127 Archived-At: Hello, Here is just a possibly stupid question on GC. After watching the use of `cons_free_list', I am confused about it. `cons_free_list' holds the unmarked cons cells during GC sweeping. When `cons' creates new cons cells, it picks any ones in `cons_free_list' if possible. But each time when sweeping happens, `cons_free_list' is reset to 0, and its previous value is lost. Since GC can run at any time with `garbage-collect', will this lead to memory leak or not? Regards, Guanpeng Xu _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/