]> git.eshelyaron.com Git - emacs.git/commitdiff
Delete obsolete comment about using purespace
authorStefan Kangas <stefankangas@gmail.com>
Tue, 10 Dec 2024 18:23:00 +0000 (19:23 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 3 Feb 2025 11:06:16 +0000 (12:06 +0100)
* src/alloc.c (Fmake_byte_code): Delete obsolete comment.

(cherry picked from commit b299a5d184542cdc66632b1a47947151a11c035e)

src/alloc.c

index 9fcf828a918fcae81592029449c9f490d4127e29..da6ec52ec3b8f7c7acc1b03f7756e0e0028cc898 100644 (file)
@@ -3692,13 +3692,6 @@ usage: (make-byte-code ARGLIST BYTE-CODE CONSTANTS DEPTH &optional DOCSTRING INT
   /* Bytecode must be immovable.  */
   pin_string (args[CLOSURE_CODE]);
 
-  /* We used to purecopy everything here, if purify-flag was set.  This worked
-     OK for Emacs-23, but with Emacs-24's lexical binding code, it can be
-     dangerous, since make-byte-code is used during execution to build
-     closures, so any closure built during the preload phase would end up
-     copied into pure space, including its free variables, which is sometimes
-     just wasteful and other times plainly wrong (e.g. those free vars may want
-     to be setcar'd).  */
   Lisp_Object val = Fvector (nargs, args);
   XSETPVECTYPE (XVECTOR (val), PVEC_CLOSURE);
   return val;