[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: |
Tue, 16 Dec 2008 13:31:45 +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) |
In article <address@hidden>, Chong Yidong <address@hidden> writes:
> I think the problem is that font_clear_cache is incorrectly written.
> For some reason, it assumes that the font cache entries have the form
> (font-spec [entity1 entity2...])
> when in fact, they have the form
> (font-spec entity1 entity2...)
> The following patch to font_clear_cache frees 60-70k of memory per
> terminal.
Ah, it seems that your patch is correct.
> Do you know why font_clear_cache was written this way,
In the early version of font-backend codes,
font_driver->list returns a vector. I changed it to return
a list at sometime, but have forgotten to adjust
font_clear_cache.
> and whether there
> could be any other places in the font code that make this incorrect
> assumption?
I've just read through font.c, but the other places look ok.
---
Kenichi Handa
address@hidden
- Re: Memory leak in keyboard variables?, (continued)
- Re: Memory leak in keyboard variables?, Kenichi Handa, 2008/12/14
- 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 <=
Re: Memory leak in keyboard variables?, Chetan Pandya, 2008/12/15