From: Ken Raeburn <raeburn@raeburn.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: GC: cons sweeping and cons block size
Date: Fri, 6 Jul 2007 07:54:46 -0400 [thread overview]
Message-ID: <E83F4FB7-DF31-4E17-BAB2-E4F2148E024E@raeburn.org> (raw)
In-Reply-To: <jwv3b02onef.fsf-monnier+emacs@gnu.org>
On Jul 5, 2007, at 12:02, Stefan Monnier wrote:
(quoting David, who was quoting Stefan)
>>> I haven't found the time to do it, but it would be good to get
>>> rid of this
>>> situation and always place tags in the 3 LSB bits.
It does appear to be the default for most systems, maybe all modern
ones, but only when we compile with GCC. Are we confident no one is
using Emacs on systems where we use a system malloc that doesn't do 8-
byte alignment? Or where the native compiler doesn't do 8-byte
alignment for static objects? I think I'd be happier with changing
the default to use USE_LSB_TAG always but check the malloc return
values and compiler-produced alignment on the configurations where we
don't already know we're safe, and perhaps delete that code and maybe
much of the non-USE_LSB_TAG code a while after it's released without
related bug reports; I'm afraid that temporarily increases the
ugliness rather than reducing it though.
> Luckily, YAILOM problems can be cought by the compiler if you
> use -DUSE_LISP_UNION_TYPE (but it incurs a performance hit, which
> is why
> it's not used by default).
Hm, I don't think I ever got around to seeing if __attribute__
((transparent_union)) would fix the performance...
We could do a USE_LSB_TAG variant of the union, to get more address
space back but keep the paranoid type checking capability.
Ken
next prev parent reply other threads:[~2007-07-06 11:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-04 6:43 GC: cons sweeping and cons block size dmantipov
2007-07-05 14:06 ` Stefan Monnier
2007-07-05 14:42 ` David Kastrup
2007-07-05 16:02 ` Stefan Monnier
2007-07-06 11:54 ` Ken Raeburn [this message]
2007-07-06 12:48 ` Stefan Monnier
[not found] <E1I5ktS-0001uQ-Uc@monty-python.gnu.org>
2007-07-03 20:22 ` Jonathan Yavner
2007-07-05 1:29 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2007-07-03 15:16 Dmitry Antipov
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=E83F4FB7-DF31-4E17-BAB2-E4F2148E024E@raeburn.org \
--to=raeburn@raeburn.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.