Memory leaks (detected by Valgrind)

Andrea Corallo andrea.corallo@arm.com
Fri Dec 17 18:48:02 GMT 2021


Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> writes:

> Speaking of parallelism: When I tried to find where the memory losses come from, I saw a lot of global variables like `link_command_spec' in `gcc.c'. Does it mean that compiling the context is not thread-safe? (I may have missed that in libgccjit's documentation.)

It is thread safe because in practice the compilation itself it's all
guarded by a mutex, see [1] for more details.

That's another good reason (I forgot to mention) why sub-processes are a
good option for Emacs (we run many compilations in parallel).

Best Regards

  Andrea

PS please use ascii only email on list.

[1] <https://gcc.gnu.org/onlinedocs/jit/internals/index.html#design-notes>


More information about the Jit mailing list