bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#53497: 29.0.50; native-compile after restarting Emacs


From: Eli Zaretskii
Subject: bug#53497: 29.0.50; native-compile after restarting Emacs
Date: Wed, 26 Jan 2022 15:22:27 +0200

> From: Arash Esbati <arash@gnu.org>
> Cc: akrl@sdf.org,  larsi@gnus.org,  53497@debbugs.gnu.org
> Date: Wed, 26 Jan 2022 12:25:43 +0100
> 
>   /* This is so deferred compilation is able to compile comp
>      dependencies breaking circularity.  */
>   if (comp__loadable)
>     {
>       /* Startup is done, comp is usable.  */
>       Frequire (Qcomp, Qnil, Qnil);
>       Fputhash (function_name, definition, Vcomp_deferred_pending_h);
>       CALLN (Ffuncall, intern_c_string ("native--compile-async"),
>            src, Qnil, Qlate);
>     }
>   else
>     Vcomp__delayed_sources = Fcons (src, Vcomp__delayed_sources);
> 
> > Does one of these early returns indeed happen?
> 
> No, early returns don't happen, but if (comp__loadable) goes into the
> else part.  This is the part in GDB with Emacs b373c8ad71:

Andrea, can you explain how this is supposed to work?  comp--loadable
is set in startup.el, provided that comp--delayed-sources is non-nil,
but which code is supposed to put something into comp--delayed-sources
by the time we call startup--honor-delayed-native-compilations during
startup?

IOW, I'm not sure I understand how this is supposed to work.

> 5137        Vcomp__delayed_sources = Fcons (src, Vcomp__delayed_sources);
> (gdb) n

What is the value of Vcomp__delayed_sources?  You can display it like
this:

  (gdb) source /path/to/emacs/src/.gdbinit
  (gdb) pp Vcomp__delayed_sources







reply via email to

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