bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#58975: 29.0.50; noverlay fails to build with --enable-checking=struc


From: Basil L. Contovounesios
Subject: bug#58975: 29.0.50; noverlay fails to build with --enable-checking=structs
Date: Thu, 03 Nov 2022 14:26:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Stefan Monnier [2022-11-02 21:55 -0400] wrote:

>> Is this the right fix?
>
> The patch looks good, thanks.
>
>> BTW, every time itree_create is called via add_buffer_overlay, it in
>> turn calls itree_init,
>
> Oh, that's not right.  `itree_init` should be called once only, from
> `emacs.c`, like things like `init_lread`.

Like this?

Attachment: 0001-Port-interval-trees-to-enable-checking-structs.patch
Description: Text Data

>> which calls itree_iterator_create, which xmallocs a new
>> itree_iterator, interval_stack, and itree_nodes.  Is this memory leak
>> going to rust my computer?
>
> No, Emacs is pure C and ELisp,

But not pure enough to avoid side-effects such as headaches.

> so it doesn't suffer from Rust.

Not in this lifetime anyway ;).

Thanks,

-- 
Basil

reply via email to

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