Subject: Re: bug#77240: 30.1; Native-comp causing large memory leak

From: Andrea Corallo <[email-masked]>
Date: Mon, 24 Mar 2025 16:24:12 -0400

N Winkel <[email-masked]> writes:

> On 24/03/2025 19:31, Eli Zaretskii wrote: 
>
>  Why do you say this is related to native-compiler?
>
> Sorry that is something I should have mentioned: I started getting this after upgrading to emacs 30, with it occurring
> every time an update was applied, which was frequent after the distro release of version 30. This is due to the new
> versions adding and populating a new .config/emacs/eln-cache/30.x-[commit hash]/
> Once it is generated (i.e. emacs has been opened a couple of times, waited a bit, killed manually once it used too much
> memory and reopened) the leak no longer happens. Without restarting emacs the memory continues to climb and the cpu usage
> remains even when everything has been compiled.

My impression is that you are just observing libgccjit running in
background while we are populating the eln cache.  How long have you
tried waiting for the compilation to finish (and the memory to be
released) before coming to the conlusion this is a memory leak?

Thanks

  Andrea