emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any way of dumping strings?


From: Óscar Fuentes
Subject: Re: Any way of dumping strings?
Date: Wed, 02 Jun 2021 19:54:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Óscar Fuentes <ofv@wanadoo.es>
>> Date: Wed, 02 Jun 2021 19:03:06 +0200
>> 
>> Is there a method for dumping or displaying those strings or vectors?
>
> Set a GDB breakpoint in mark_vectorlike, with commands that dump each
> vector, then trigger GC?

I was hoping for something that could show at least thousands of
instances. Going one by one would be extremely time-consuming and
potentially deceptive.

Does Emacs zero-initialize memory when it is garbage-collected? Even if
it doesn't, maybe it is enough to dump the whole image to a file. Some
part would be gc-ed data, but a comparatively small part among all the
rest of hundreds of MB.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]