Do not allow font caches to grow too large.
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 21 Oct 2013 14:11:25 +0000 (18:11 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 21 Oct 2013 14:11:25 +0000 (18:11 +0400)
commitfc54bdd59909d87c56686a42aba3b92785617a51
tree676fd033b56d0a4a72cb9c8e8576a76f3fce2945
parentdf74c4be16efb83408b78c5b1205fccfb2c10696
Do not allow font caches to grow too large.
* alloc.c (compact_font_cache_entry, compact_font_caches):
New functions or stub if not HAVE_WINDOW_SYSTEM.
(compact_undo_list): Factor out from Fgarbage_collect.
Add comment.
(mark_face_cache): Mark face font.  Move down to avoid
extra prototypes.
(mark_terminals): Do not mark font cache here.
(Fgarbage_collect): Call compaction functions described
above.  Adjust comment.
src/ChangeLog
src/alloc.c