From: Dmitry Antipov <dmantipov@yandex.ru>
To: emacs-devel@gnu.org
Subject: Stack marking and Lisp objects alignment
Date: Sat, 07 Jul 2007 23:09:53 +0400 [thread overview]
Message-ID: <383801183835393@webmail23.yandex.ru> (raw)
[-- Attachment #1: Type: text/plain, Size: 86 bytes --]
Is that correct ? If yes, this is a tiny speedup for stack marking code...
Dmitry
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: pointer_marking.patch --]
[-- Type: text/x-patch; name="pointer_marking.patch", Size: 780 bytes --]
Index: alloc.c
===================================================================
RCS file: /sources/emacs/emacs/src/alloc.c,v
retrieving revision 1.410
diff -u -r1.410 alloc.c
--- alloc.c 8 Jun 2007 19:59:46 -0000 1.410
+++ alloc.c 7 Jul 2007 19:03:23 -0000
@@ -4263,9 +4263,14 @@
{
struct mem_node *m;
- /* Quickly rule out some values which can't point to Lisp data. We
- assume that Lisp data is aligned on even addresses. */
+ /* Quickly rule out some values which can't point to Lisp data. We assume
+ that Lisp data is aligned on 8-byte boundaries if LSB tagging scheme is
+ used, or at least at even addresses otherwise. */
+#ifdef USE_LSB_TAG
+ if ((EMACS_INT) p & 7)
+#else
if ((EMACS_INT) p & 1)
+#endif
return;
m = mem_find (p);
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next reply other threads:[~2007-07-07 19:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-07 19:09 Dmitry Antipov [this message]
2007-07-10 17:58 ` Stack marking and Lisp objects alignment Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=383801183835393@webmail23.yandex.ru \
--to=dmantipov@yandex.ru \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.