Subject: Re: bug#46256: [feature/native-comp] AOT eln files ignored if run from build tree

From: Andrea Corallo <[email-masked]>
Date: Tue, 09 Mar 2021 07:03:01 +0000

Eli Zaretskii <[email-masked]> writes:

>> From: Andrea Corallo <[email-masked]>
>> Cc: Pip Cet <[email-masked]>, [email-masked],
>>         [email-masked]
>> Date: Mon, 08 Mar 2021 18:15:21 +0000
>> 
>> >   From        To          Syms Read   Shared Object Library
>> >   0x6a581000  0x6a5bacd8  Yes         d:\usr\eli\.emacs.d\eln-cache\28.0.50-19fa14f1\cc-align-bb265728-bd3550a3.eln
>> >
>> > whose address is 4KB higher.  That probably means the CU represented
>> > by comp_u was unloaded, right?
>> 
>> I guess this suggests 0x6a580000 was a previously infact a mapped eln
>> that got unmapped.
>
> Can you tell why are we loading the same .eln files more than once?

I guess `load' was called two times on the same filename.

> What are the reasons for unloading a .eln file which was once loaded
> into a session?

All the functions defined in it are not anymore reachable (read all
symbols functions are makunbound or defined to some other function).

  Andrea