From: Arash Esbati <arash@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: larsi@gnus.org, 53497@debbugs.gnu.org, akrl@sdf.org
Subject: bug#53497: 29.0.50; native-compile after restarting Emacs
Date: Wed, 26 Jan 2022 12:25:43 +0100 [thread overview]
Message-ID: <86r18uwxfs.fsf@gnu.org> (raw)
In-Reply-To: <83fspchrgd.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 25 Jan 2022 15:31:46 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
> Step through the code of maybe_defer_native_compilation with the 'n'
> command, and see if it calls native--compile-async in this fragment:
>
> /* This is so deferred compilation is able to compile comp
> dependencies breaking circularity. */
> if (!NILP (Ffeaturep (Qcomp, Qnil)))
> {
> /* Comp already loaded. */
> if (!NILP (delayed_sources))
> {
> CALLN (Ffuncall, intern_c_string ("native--compile-async"),
> delayed_sources, Qnil, Qlate);
> delayed_sources = Qnil;
> }
> Fputhash (function_name, definition, Vcomp_deferred_pending_h);
> CALLN (Ffuncall, intern_c_string ("native--compile-async"),
> src, Qnil, Qlate);
> }
This part looks like this for me:
/* 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:
Thread 1 hit Breakpoint 1, maybe_defer_native_compilation (function_name=0xffff82e3c49e4338, definition=0x2d9d16a5345) at comp.c:5104
warning: Source file is more recent than executable.
5104 if (!load_gccjit_if_necessary (false))
(gdb) n
[New Thread 21916.0x5878]
5107 if (!native_comp_deferred_compilation
(gdb) n
5108 || noninteractive
(gdb) n
5109 || !NILP (Vpurify_flag)
(gdb) n
5110 || !COMPILEDP (definition)
(gdb) n
5111 || !STRINGP (Vload_true_file_name)
(gdb) n
5112 || !suffix_p (Vload_true_file_name, ".elc")
(gdb) n
5113 || !NILP (Fgethash (Vload_true_file_name, V_comp_no_native_file_h, Qnil)))
(gdb) n
5117 concat2 (CALL1I (file-name-sans-extension, Vload_true_file_name),
(gdb) n
[New Thread 21916.0x2fb0]
5119 if (NILP (Ffile_exists_p (src)))
(gdb) n
5128 if (comp__loadable)
(gdb) n
5137 Vcomp__delayed_sources = Fcons (src, Vcomp__delayed_sources);
(gdb) n
5138 }
Again, many thanks for your patience.
Best, Arash
next prev parent reply other threads:[~2022-01-26 11:25 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 [this message]
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
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=86r18uwxfs.fsf@gnu.org \
--to=arash@gnu.org \
--cc=53497@debbugs.gnu.org \
--cc=akrl@sdf.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.