emacs-devel
[Top][All Lists]
Advanced

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

Re: MPS image cache


From: Gerd Möllmann
Subject: Re: MPS image cache
Date: Fri, 03 May 2024 13:43:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Gerd Möllmann <gerd.moellmann@gmail.com> writes:

> Helmut Eller <eller.helmut@gmail.com> writes:
>
>> On Fri, May 03 2024, Gerd Möllmann wrote:
>>
>>> I think I have one: struct terminal's image_cache is not traced. AFAICS,
>>> the cache is malloc'd and contains struct image which is an MPS object.
>>>
>>> WDYT?
>>
>> Two options come to mind:
>>   1) trace it in fix_terminal
>>   2) register terminal.c:terminal_list as root.
>>
>> It seems to me that creating a root is more "correct".
>
> I'm meanhile tending ta the third option: make iamge_cache an MPS object
> like face_cache. For a reason that's proobably the reason why I made
> fache_cache an MPS object:
>
> While we scan an object, MPS gives us exclusive access to it. I think we
> want that for these caches, so that scanning does not interfere iwth the
> client modifying the cache?
>
> Right?

I've doen that now. It is right :-)



reply via email to

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