[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Memory leak in keyboard variables?
From: |
Kenichi Handa |
Subject: |
Re: Memory leak in keyboard variables? |
Date: |
Mon, 15 Dec 2008 10:26:05 +0900 |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
> One thing I noticed is the xftfont_open is run whenever we
> call "emacsclient -c", but xftfont_close is never called.
> It appears that font_open_entity is called to allocate a
> font object, it is in general not recorded anywhere.
No. A font object is recorded in FONT_OBJLIST_INDEX of a
font-entity.
> Could this be part of the problem?
The strategy is to record all font-objects in font-entities, and
record all font-entities in a cache of each font-backend. The caches
are freed when `delete-frame' calls font_update_drivers with
new_drivers as nil through this calling sequence.
font_update_drivers -> font_finish_cache -> font_clear_cache
At that time all font-entities and font-obects are freed.
If there's a memory leak for font objectes, it means that there is a
bug at some code implementing the above strategy.
I don't have a time to tackle this problem at the moment,
but I'll take care of it as soon as possible.
---
Kenichi Handa
address@hidden
- Re: Memory leak in keyboard variables?, (continued)
- Re: Memory leak in keyboard variables?, Chong Yidong, 2008/12/13
- Re: Memory leak in keyboard variables?, Chong Yidong, 2008/12/16
- Re: Memory leak in keyboard variables?, Stephen J. Turnbull, 2008/12/16
- Re: Memory leak in keyboard variables?, Chong Yidong, 2008/12/19
- Re: Memory leak in keyboard variables?, Jan Djärv, 2008/12/20
- Re: Memory leak in keyboard variables?, Markus Triska, 2008/12/20
- Re: Memory leak in keyboard variables?, Dan Nicolaescu, 2008/12/20
- Re: Memory leak in keyboard variables?, Dan Nicolaescu, 2008/12/20
- Re: Memory leak in keyboard variables?, Chong Yidong, 2008/12/20
Re: Memory leak in keyboard variables?, Stefan Monnier, 2008/12/11
Re: Memory leak in keyboard variables?,
Kenichi Handa <=
- Re: Memory leak in keyboard variables?, Chong Yidong, 2008/12/14
- image cache (was: Memory leak in keyboard variables?), Stefan Monnier, 2008/12/14
- Re: image cache (was: Memory leak in keyboard variables?), Eli Zaretskii, 2008/12/14
- Re: image cache, Stefan Monnier, 2008/12/15
- Re: image cache, Chong Yidong, 2008/12/15
- Re: image cache, Stefan Monnier, 2008/12/15
- Re: image cache, Miles Bader, 2008/12/15
- Re: image cache, Chetan Pandya, 2008/12/15
- Re: image cache, Chetan Pandya, 2008/12/16
Re: Memory leak in keyboard variables?, Kenichi Handa, 2008/12/15