emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic loading progress


From: Stefan Monnier
Subject: Re: Dynamic loading progress
Date: Wed, 11 Feb 2015 10:35:45 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]