From: "Jan Djärv" <jan.h.d@me.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 15802@debbugs.gnu.org
Subject: bug#15802: 24.3.50; PUSH_HANDLER leaks memory?
Date: Tue, 05 Nov 2013 07:53:47 +0100 [thread overview]
Message-ID: <02F4E04B-C60F-481D-B381-79F1F8867D59@me.com> (raw)
In-Reply-To: <jwvob5zbm5r.fsf-monnier+emacsbugs@gnu.org>
Hello.
5 nov 2013 kl. 03:48 skrev Stefan Monnier <monnier@iro.umontreal.ca>:
>> That must be a leak then. If you start with a NULL handlerlist, add one,
>> and then remove it, it is leaked. Then add one and remove, more leakage.
>> And so on. Why are they never released?
>
> You might be right that the NULL case is not handled.
> Once we move past NULL, they are still not freed, but they're kept in
> "nextfree" and hence reused.
The NULL case must be fairly common, i.e just one PUSH and then unwind.
Jan D.
next prev parent reply other threads:[~2013-11-05 6:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-04 18:32 bug#15802: 24.3.50; PUSH_HANDLER leaks memory? Jan Djärv
2013-11-04 20:10 ` Stefan Monnier
2013-11-04 21:49 ` Jan Djärv
2013-11-05 2:48 ` Stefan Monnier
2013-11-05 6:53 ` Jan Djärv [this message]
2013-11-05 16:28 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=02F4E04B-C60F-481D-B381-79F1F8867D59@me.com \
--to=jan.h.d@me.com \
--cc=15802@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).