emacs-devel
[Top][All Lists]
Advanced

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

Re: Note on 109327


From: Dmitry Antipov
Subject: Re: Note on 109327
Date: Tue, 31 Jul 2012 17:25:18 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0

On 07/31/2012 05:13 PM, Dan Nicolaescu wrote:

What's the motivation for changes like:
-  f->icon_name = Qnil;
+  FVAR (f, icon_name) = Qnil;
?

The new version looks more obfuscated ...

Yes. I'm always thinking about improving internal stuff, GC at first.
For me, the main motivation for BVAR, KVAR, FVAR etc. is the ability
to catch the moment when the pointer (e.g. Lisp_Object) within buffer,
or keyboard, of frame, etc. is read or written, which may be useful
to implement write barriers (see, for exmaple,
http://www.hoelzle.org/publications/write-barrier.pdf, but do not
get confused with http://en.wikipedia.org/wiki/Memory_barrier).

Dmitry




reply via email to

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