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: Dynamic loading progress Date: Wed, 11 Feb 2015 10:35:45 -0500 Message-ID: References: <87y4t9m76w.fsf@lifelogs.com> <85k31coixa.fsf@stephe-leake.org> <85oapy5kt6.fsf@stephe-leake.org> <83y4oiiw81.fsf@gnu.org> <838ugdf251.fsf@gnu.org> <54D80098.3020209@cs.ucla.edu> <54D85304.1030600@cs.ucla.edu> <54D9AC29.2020603@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423669032 26592 80.91.229.3 (11 Feb 2015 15:37:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Feb 2015 15:37:12 +0000 (UTC) Cc: Paul Eggert , Stephen Leake , Emacs development discussions To: =?windows-1252?Q?Aur=E9lien?= Aptel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 11 16:37:00 2015 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 1YLZLY-0008Nl-E3 for ged-emacs-devel@m.gmane.org; Wed, 11 Feb 2015 16:37:00 +0100 Original-Received: from localhost ([::1]:45530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLZLX-0004qN-Sg for ged-emacs-devel@m.gmane.org; Wed, 11 Feb 2015 10:36:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLZKp-0003zt-WB for emacs-devel@gnu.org; Wed, 11 Feb 2015 10:36:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLZKk-0001H1-Pn for emacs-devel@gnu.org; Wed, 11 Feb 2015 10:36:15 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:39859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLZKk-0001G7-8o for emacs-devel@gnu.org; Wed, 11 Feb 2015 10:36:10 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 2772C85DA3; Wed, 11 Feb 2015 10:36:09 -0500 (EST) Original-Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 76C9C1E5B8B; Wed, 11 Feb 2015 10:35:45 -0500 (EST) Original-Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 588DCB4102; Wed, 11 Feb 2015 10:35:45 -0500 (EST) In-Reply-To: (=?windows-1252?Q?=22Aur=E9lien?= Aptel"'s message of "Wed, 11 Feb 2015 10:43:01 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 132.204.24.67 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:182889 Archived-At: > I added a new Lisp_Misc subtype called Lisp_Module which stores: > - a module id > - a void* user pointer > - a function pointer to a destructor to release the resources of the > user pointer I think I got confused by the name: these objects don't represent modules, right (despite the name of their type)? They are objects created by a particular module (stored in the module-id). > One thing I haven't checked is whether adding the Lisp_Module to the > Lisp_Misc union changes its size (the existing comments say this is > important). The Lisp_Misc union is for objects with up to 5 "words" (or 6 "words" if you count the word that holds the header). Your objects have only 2 "words" (or 3 if you count the header where you added the "id"), so you're perfectly fine, with room to grow. Stefan