From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: fixes to goops + light structs + 'u' slots Date: Sat, 19 Apr 2008 18:28:10 +0200 Message-ID: References: <87zls1bdk6.fsf@gnu.org> <87fxtpwq0t.fsf@gnu.org> <66e540fe0804131209y6a3a1810i72a6ba048a7cb83b@mail.gmail.com> <66e540fe0804141516w1e44cfc6u5f756aaa579cb5b1@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208636511 19697 80.91.229.12 (19 Apr 2008 20:21:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2008 20:21:51 +0000 (UTC) Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , guile-devel@gnu.org To: mikael@djurfeldt.com Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Apr 19 22:22:25 2008 connect(): Connection refused Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JnJZo-0003ut-Hc for guile-devel@m.gmane.org; Sat, 19 Apr 2008 22:22:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JnJZ9-0000UP-Cd for guile-devel@m.gmane.org; Sat, 19 Apr 2008 16:21:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JnJZ4-0000UK-0B for guile-devel@gnu.org; Sat, 19 Apr 2008 16:21:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JnJZ2-0000U8-J2 for guile-devel@gnu.org; Sat, 19 Apr 2008 16:21:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JnJZ2-0000U5-DD for guile-devel@gnu.org; Sat, 19 Apr 2008 16:21:36 -0400 Original-Received: from a-sasl-quonix.sasl.smtp.pobox.com ([208.72.237.25] helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JnJYu-0006QW-3z; Sat, 19 Apr 2008 16:21:28 -0400 Original-Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id 2D8812912; Sat, 19 Apr 2008 16:21:20 -0400 (EDT) Original-Received: from unquote (96.Red-83-44-188.dynamicIP.rima-tde.net [83.44.188.96]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id 1FB7F2911; Sat, 19 Apr 2008 16:21:16 -0400 (EDT) In-Reply-To: <66e540fe0804141516w1e44cfc6u5f756aaa579cb5b1@mail.gmail.com> (Mikael Djurfeldt's message of "Tue, 15 Apr 2008 00:16:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:7174 Archived-At: Hi Mikael, On Tue 15 Apr 2008 00:16, "Mikael Djurfeldt" writes: > 2008/4/14, Andy Wingo : >> Regarding memory consumption. Currently, structs are double-cells: one >> word for the vtable, one for the data, one empty, and one for the >> "STRUCT_GC_CHAIN", used (please correct me) during GC to ensure that >> structs are freed before their vtables. > > I wash my hands. :-) When I left, structs where two words. commit 08c880a36746289330f3722522960ea21fe4ddc8 Author: Mikael Djurfeldt Date: Wed Aug 9 18:29:31 2000 +0000 * struct.c (scm_make_struct, scm_make_vtable_vtable): Structs handles are now double cells; Initialize SCM_STRUCT_GC_CHAIN to 0. (scm_struct_gc_init, scm_free_structs): New GC C hooks. (scm_struct_prehistory): Install them. It is natural for our memory to fade over this much time ;-) But if at any point something sparks in your brain to figure out a way around the GC chain, I'd certainly be interested. Otherwise we could put that empty third word to good use. Andy -- http://wingolog.org/