From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Lisp object that refers to a C struct Date: Wed, 17 Oct 2012 20:23:42 -0400 Message-ID: References: <83ehkz4edw.fsf@gnu.org> <83bog33wdr.fsf@gnu.org> <837gqq49j7.fsf@gnu.org> <83k3up2iem.fsf@gnu.org> <83a9vk3j7u.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350519830 15848 80.91.229.3 (18 Oct 2012 00:23:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Oct 2012 00:23:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 18 02:23:57 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TOdtz-0000XR-QJ for ged-emacs-devel@m.gmane.org; Thu, 18 Oct 2012 02:23:55 +0200 Original-Received: from localhost ([::1]:42077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOdts-0006rU-Ot for ged-emacs-devel@m.gmane.org; Wed, 17 Oct 2012 20:23:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOdtq-0006rE-31 for emacs-devel@gnu.org; Wed, 17 Oct 2012 20:23:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOdtp-0001XU-Am for emacs-devel@gnu.org; Wed, 17 Oct 2012 20:23:46 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:12567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOdtn-0001XG-UA; Wed, 17 Oct 2012 20:23:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09MCoeh/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="201931616" Original-Received: from 76-10-135-161.dsl.teksavvy.com (HELO pastel.home) ([76.10.135.161]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 17 Oct 2012 20:23:43 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 10CAA59525; Wed, 17 Oct 2012 20:23:43 -0400 (EDT) In-Reply-To: <83a9vk3j7u.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 17 Oct 2012 23:02:45 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154398 Archived-At: > OK, but who will call this freeing function? E.g., I don't see a call > to free_misc in gc_sweep, it just puts every Lisp_Misc on the free > list. Do I add the call to the freeing function in gc_sweep, similar > to the call to unchain_marker for markers? Yes, you need to add the call to gc_sweep. Stefan