From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: GC crashes Date: 08 Dec 2003 00:16:40 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20031124.110938.193696628.wl@gnu.org> <200311260203.LAA26808@etlken.m17n.org> <20031128.103107.41640217.wl@gnu.org> <200312011240.VAA05762@etlken.m17n.org> <200312022337.IAA02026@etlken.m17n.org> <200312032319.IAA04473@etlken.m17n.org> <200312040112.KAA04711@etlken.m17n.org> <200312040221.LAA04807@etlken.m17n.org> <200312080231.LAA12773@etlken.m17n.org> <200312080501.OAA12954@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070860725 19076 80.91.224.253 (8 Dec 2003 05:18:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2003 05:18:45 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Dec 08 06:18:38 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ATDn4-000488-00 for ; Mon, 08 Dec 2003 06:18:38 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ATDn4-0000pF-00 for ; Mon, 08 Dec 2003 06:18:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATEjN-0004Ne-Ce for emacs-devel@quimby.gnus.org; Mon, 08 Dec 2003 01:18:53 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ATEj9-0004NX-4x for emacs-devel@gnu.org; Mon, 08 Dec 2003 01:18:39 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ATEid-0004LR-CU for emacs-devel@gnu.org; Mon, 08 Dec 2003 01:18:38 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATEid-0004LM-0K for emacs-devel@gnu.org; Mon, 08 Dec 2003 01:18:07 -0500 Original-Received: from vor.iro.umontreal.ca (vor.iro.umontreal.ca [132.204.24.42]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 2787920F6C; Mon, 8 Dec 2003 00:16:41 -0500 (EST) Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id 919D03CFD9; Mon, 8 Dec 2003 00:16:40 -0500 (EST) Original-To: Kenichi Handa In-Reply-To: <200312080501.OAA12954@etlken.m17n.org> Original-Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:18535 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18535 >>> I'll try :weak `key' and check if it really works >>> locally. It seems that we can't commit anything for a >>> while anyway. >> It shouldn't make any difference in practice. > Why? You said that the value associated with each key is always an integer, right? In that case, the value is always survive_gc_p, so it will never cause the key&value pair to be removed, so whether only `key' or both key&value are weak shouldn't make any difference. The only reason why I originally suggested to use `key' is that it expresses more clearly what you want to see happen. And it will make a real difference if you ever decide to use values more complex than just integers. Stefan