]> git.eshelyaron.com Git - emacs.git/commitdiff
Speed up make_lisp_symbol when debugging
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 21 Jan 2024 00:52:31 +0000 (16:52 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 21 Jan 2024 07:31:25 +0000 (08:31 +0100)
* src/lisp.h (make_lisp_symbol): In eassert use XBARE_SYMBOL
rather than XSYMBOL.  This is safe because the symbol must be
bare.  The change speeds up make_lisp_symbol when debugging.

(cherry picked from commit bdcd662a21f4c4265f704b69deb9cf277a663ea7)

src/lisp.h

index c3309c81a1665fde09ebdde5daeb0fd9c1aa4450..f0beafba42c269a7d942c7cbb3de8f5e1054234d 100644 (file)
@@ -1166,7 +1166,7 @@ make_lisp_symbol (struct Lisp_Symbol *sym)
      cast to char * rather than to intptr_t.  */
   char *symoffset = (char *) ((char *) sym - (char *) lispsym);
   Lisp_Object a = TAG_PTR (Lisp_Symbol, symoffset);
-  eassert (XSYMBOL (a) == sym);
+  eassert (XBARE_SYMBOL (a) == sym);
   return a;
 }