From: Colin Baxter <m43cap@yandex.com>
To: emacs-devel@gnu.org
Subject: Re: USE_LSB_TAG not supported on this platform
Date: Wed, 10 Feb 2016 19:29:58 +0000 [thread overview]
Message-ID: <87io1wz7m1.fsf@yandex.com> (raw)
In-Reply-To: 83r3glbw3c.fsf@gnu.org
>> Cc: herbert@mailbox.org, emacs-devel@gnu.org, m43cap@yandex.com
>> From: Paul Eggert <eggert@cs.ucla.edu>
>> Date: Tue, 9 Feb 2016 09:37:15 -0800
>>
>> On 02/09/2016 08:59 AM, Eli Zaretskii wrote:
>> > Thanks. Out of curiosity: which hosts can behave like that?
>>
>> 16-bit PDP-11s running 7th Edition Unix. malloc returned only a multiple
>> of 2 there. :-)
>
> There's only one 16-bit platform supported by Emacs: MS-DOS. And
> there the problem doesn't exist, because the library switches the CPU
> to 32-bit mode.
>
>> > Also, why are we sure that the loops will end at some point on those
>> > hosts? Shouldn't we perhaps set a limit to the loop iterations, to be
>> > sure we don't infloop there?
>>
>> We're not absolutely sure. Certainly the C standard doesn't guarantee
>> it; malloc can return a pointer that is always odd, on weird platforms
>> where alignof always returns 1. I view this as almost purely theoretical
>> though, due to the practical performance benefit of alignment to at
>> least sizeof(double). It's conceivable (though very unlikely) that Emacs
>> will infloop on some truly oddball platform that does not care about
>> performance; but if that happens it'll be OK, as the infloop would
>> almost surely happen during a build and the builder would then send us a
>> bug report and we can deal with it then. I think adding a counter would
>> complicate the code (and possibly introduce bugs, in code that's never
>> really exercised) for not enough benefit.
>
> Maybe these considerations are worth having as comments near the loop,
> so that whoever bumps into the problem will know faster and better
> what to do.
>
> Thanks.
You might like to know that the latest git-pull builds satisfactorily
for me, giving Emacs 25.1.50.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2)
of 2016-02-10
Best wishes,
Colin.
next prev parent reply other threads:[~2016-02-10 19:29 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-04 8:32 USE_LSB_TAG not supported on this platform C. Baxter
2016-02-04 13:24 ` Stefan Monnier
2016-02-04 15:51 ` Paul Eggert
2016-02-04 22:29 ` Herbert J. Skuhra
2016-02-05 1:22 ` Paul Eggert
2016-02-05 9:45 ` Colin Baxter
2016-02-06 10:55 ` Herbert J. Skuhra
2016-02-06 16:04 ` Herbert J. Skuhra
2016-02-07 15:11 ` Wolfgang Jenkner
2016-02-07 19:14 ` Herbert J. Skuhra
2016-02-07 21:35 ` Herbert J. Skuhra
2016-02-08 19:45 ` Paul Eggert
2016-02-08 20:14 ` Eli Zaretskii
2016-02-09 8:39 ` Paul Eggert
2016-02-09 16:59 ` Eli Zaretskii
2016-02-09 17:37 ` Paul Eggert
2016-02-09 18:02 ` Eli Zaretskii
2016-02-10 19:29 ` Colin Baxter [this message]
2016-02-08 23:01 ` Herbert J. Skuhra
2016-02-09 1:10 ` Paul Eggert
2016-02-09 11:12 ` Herbert J. Skuhra
2016-02-09 23:37 ` Paul Eggert
2016-02-09 15:53 ` Wolfgang Jenkner
2016-02-09 23:33 ` Paul Eggert
2016-02-06 20:34 ` Paul Eggert
2016-02-07 16:52 ` Herbert J. Skuhra
2016-02-07 21:34 ` Paul Eggert
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=87io1wz7m1.fsf@yandex.com \
--to=m43cap@yandex.com \
--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.