From: "Milan Stanojević" <mstanojevic@janestreet.com>
To: emacs-devel@gnu.org
Subject: emacs modules memory leak in 27
Date: Mon, 20 Jul 2020 12:41:35 -0400 [thread overview]
Message-ID: <CAArdBwMY_yug89Bm5BwZ3u6V5shE5BGfm6uhvRVVrrYf1xCODA@mail.gmail.com> (raw)
This is on emacs-27 branch.
env-make_global_ref will add a reference to the underlying Lisp_Object
and allocate emacs_value from the global storage. env->free_global_ref
on the other hand will only remove a reference to the underlying
Lisp_Object and not free the emacs_value.
The global storage of emacs_values seems to be only growing and is
never collected (and I think with the current array implementation it
is probably not possible to collect).
This leak is not present in 26 and I think the leak was introduced
with the change in the underlying representation of emacs_value. (If
I'm reading git history right, since 26 this was changed and then
reverted and then changed again).
next reply other threads:[~2020-07-20 16:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-20 16:41 Milan Stanojević [this message]
2020-07-22 23:37 ` emacs modules memory leak in 27 Milan Stanojević
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAArdBwMY_yug89Bm5BwZ3u6V5shE5BGfm6uhvRVVrrYf1xCODA@mail.gmail.com \
--to=mstanojevic@janestreet.com \
--cc=emacs-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.