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

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

Re: When are unused overlays garbage collected?


From: Stefan Monnier
Subject: Re: When are unused overlays garbage collected?
Date: Wed, 26 May 2021 11:36:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> But what would happen if I (delete-overlay my-overlay), then it gets
>> garbage collected, and then I (move-overlay my-overlay ...)?
>                                               ^^^^^^^^^^
> You are still holding a reference to it. It would be an extremely
> impolite action on part of the garbage collector to even look at
> your overlay. I'm sure it would bring about a severe reprimand :)

Oh, the GC will definitely look at it, but it will be discrete, you
won't notice it.


        Stefan




reply via email to

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