From: Andrea Corallo <akrl@sdf.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Arash Esbati <arash@gnu.org>, 53497@debbugs.gnu.org, larsi@gnus.org
Subject: bug#53497: 29.0.50; native-compile after restarting Emacs
Date: Thu, 27 Jan 2022 10:11:29 +0000 [thread overview]
Message-ID: <xjfmtjhzdwu.fsf@ma.sdf.org> (raw)
In-Reply-To: <83bkzyhbsc.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 26 Jan 2022 15:22:27 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> 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?
Before `comp--loadable' becomes true (read the native compiler is not
loadable) each time we enter in 'maybe_defer_native_compilation' we
accumulate the compilation units we want to compile in
`comp--delayed-sources'.
When we finally call `startup--honor-delayed-native-compilations' we
check if something is pending in `comp--delayed-sources' and if this is
the case we load the native compiler and we compile what's pending.
Unless I'm wrong the problem I see here is that if
`comp--delayed-sources' is empty we never set `comp--loadable' to t.
I'll be testing a patch today and report.
Andrea
next prev parent reply other threads:[~2022-01-27 10:11 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-24 10:20 bug#53497: 29.0.50; native-compile after restarting Emacs Arash Esbati
2022-01-24 10:30 ` Lars Ingebrigtsen
2022-01-24 10:35 ` Arash Esbati
2022-01-24 10:40 ` Lars Ingebrigtsen
2022-01-24 11:00 ` Arash Esbati
2022-01-24 12:28 ` Eli Zaretskii
2022-01-24 12:43 ` Arash Esbati
2022-01-24 12:36 ` Eli Zaretskii
2022-01-24 12:50 ` Arash Esbati
2022-01-24 12:56 ` Eli Zaretskii
2022-01-24 13:33 ` Arash Esbati
2022-01-24 13:45 ` Eli Zaretskii
2022-01-24 13:50 ` Eli Zaretskii
2022-01-24 14:27 ` Andrea Corallo
2022-01-24 14:31 ` Eli Zaretskii
2022-01-24 17:17 ` Arash Esbati
2022-01-24 19:08 ` Eli Zaretskii
2022-01-25 11:01 ` Arash Esbati
2022-01-25 12:36 ` Eli Zaretskii
2022-01-25 12:49 ` Arash Esbati
2022-01-25 13:31 ` Eli Zaretskii
2022-01-26 11:25 ` Arash Esbati
2022-01-26 13:22 ` Eli Zaretskii
2022-01-26 14:58 ` Arash Esbati
2022-01-26 15:13 ` Eli Zaretskii
2022-01-26 15:20 ` Arash Esbati
2022-01-26 16:54 ` Eli Zaretskii
2022-01-26 19:06 ` Arash Esbati
2022-01-26 19:30 ` Eli Zaretskii
2022-01-26 15:58 ` Andrea Corallo
2022-01-27 10:11 ` Andrea Corallo [this message]
2022-01-27 10:31 ` Eli Zaretskii
2022-01-27 10:57 ` Andrea Corallo
2022-01-27 11:03 ` Eli Zaretskii
2022-01-27 12:58 ` Andrea Corallo
2022-01-27 15:03 ` Arash Esbati
2022-01-27 15:22 ` Eli Zaretskii
2022-01-27 16:27 ` Arash Esbati
2022-01-27 16:37 ` Andrea Corallo
2022-01-27 16:57 ` Eli Zaretskii
2022-01-27 17:22 ` Andrea Corallo
2022-01-27 22:21 ` Andrea Corallo
2022-01-28 9:24 ` Arash Esbati
2022-01-28 12:15 ` Eli Zaretskii
2022-01-28 15:12 ` Andrea Corallo
2022-01-28 16:02 ` Andrea Corallo
2022-01-28 16:30 ` Lars Ingebrigtsen
2022-01-29 7:40 ` Andrea Corallo
2022-01-29 10:02 ` Eli Zaretskii
2022-01-29 11:49 ` Arash Esbati
2022-01-27 16:58 ` Arash Esbati
2022-01-27 17:03 ` Eli Zaretskii
2022-01-28 9:26 ` Arash Esbati
2022-01-24 16:33 ` Arash Esbati
2022-01-24 17:07 ` Eli Zaretskii
2022-01-24 18:47 ` Arash Esbati
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xjfmtjhzdwu.fsf@ma.sdf.org \
--to=akrl@sdf.org \
--cc=53497@debbugs.gnu.org \
--cc=arash@gnu.org \
--cc=eliz@gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.