emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] feature/byte-switch 086c4ea: * src/bytecode.c: (exec_b


From: Daniel Colascione
Subject: Re: [Emacs-diffs] feature/byte-switch 086c4ea: * src/bytecode.c: (exec_byte_code) Use hash_lookup for Bswitch
Date: Fri, 20 Jan 2017 01:10:02 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

On Wed, Jan 18 2017, Stefan Monnier wrote:
>>     * src/bytecode.c: (exec_byte_code) Use hash_lookup for Bswitch
>>     Fgethash type checks the provided table object, which is unnecessary
>>     for compiled bytecode.
>
> While it's true that we can cause a core dump of Emacs if we feed it an
> invalid .elc file, that's a "feature" I'd rather shrink rather
> than generalize.

Why? If anything, the opposite direction is the right one. elc files
should be tightly coupled to the Emacs that built them so that they can
be specialized for specific machines.  You could imagine them
containing, say, saved JIT traces.



reply via email to

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