GNU bug report logs - #41242
Port feature/native-comp to Windows

Previous Next

Package: emacs;

Reported by: Nicolas Bértolo <nicolasbertolo <at> gmail.com>

Date: Wed, 13 May 2020 19:28:01 UTC

Severity: wishlist

Done: Andrea Corallo <akrl <at> sdf.org>

Bug is archived. No further changes may be made.

Full log


Message #77 received at 41242 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Bértolo <nicolasbertolo <at> gmail.com>
To: Andrea Corallo <akrl <at> sdf.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 41242 <at> debbugs.gnu.org
Subject: Re: bug#41242: Port feature/native-comp to Windows
Date: Thu, 14 May 2020 14:51:34 -0300
> 1- eln files do not retain the orginal function bytecode.

That should be easy to change.

> in any point of the code you can get the symbol-function of a defined
   function and leak it everywhere.

This is why I said the GC should do it. It should be able to find all
references.

> We can't technically "swap" functions definitions, the best we do is just
> redefine them that is set a certain symbol-function (what late load does).

When the GC finds a Lisp_Object that points to a subr we want to unload,
it should replace it with one that points to its bytecode equivalent version.

> Even worst the function you want to remove could be active in the stack!

You are right. I hadn't considered this. It can still be done, but would need to
wait until the function finishes.




This bug report was last modified 5 years and 41 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.