[Top][All Lists]

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

Re: Memory leaks

From: Uday S Reddy
Subject: Re: Memory leaks
Date: Mon, 07 Mar 2011 19:19:48 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20110303 Thunderbird/3.1.9

On 3/4/2011 11:39 AM, Uday S Reddy wrote:

After several hours of usage:

(:conses (1558351 . 313757)
:syms (93011 . 347)
:miscs (140492 . 28025)
:chars 9264181 :vector 2283330 :floats (347 . 638)
:intervals (2771 . 4880)
:strings (467731 . 34316))

One of the things I have decided to check is what I am doing with vectors because more than 2M vector slots were being locked up in an empty Emacs session.

A widespread use of vectors in VM is for obarrays. The code might look something like this:

   (let ((obarray (make-vector 67 0)))
      ... intern lots of symbols in obarray
      (setq buffer-local-var obarray))

I have begun to wonder if obarray gets freed after buffer-local-var stops pointing to it, say through another setq to buffer-local-var.

Am I supposed to unintern the symbols to free up their memory?


reply via email to

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