emacs-devel
[Top][All Lists]
Advanced

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

Re: Memory leak in keyboard variables?


From: Andreas Schwab
Subject: Re: Memory leak in keyboard variables?
Date: Thu, 11 Dec 2008 10:30:07 +0100
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux)

Chong Yidong <address@hidden> writes:

> Now, input-decode-map is defined in keyboard.c, using DEFVAR_KBOARD.  It
> is a Lisp_Misc_Kboard_Objfwd object, and if I'm not mistaken, such
> objects are not garbage-collected.

All Objfwd types are not real objects on their own, but static markers
to tell the evaluator to look elsewhere for the value.  If the
pointed-to object is still live then it will not be collected, of
course.

> When the terminal is killed, are its keyboard's Lisp_Misc_Kboard_Objfwd
> objects freed?

All such objects are allocated only once before dumping.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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