all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs modules memory leak in 27
@ 2020-07-20 16:41 Milan Stanojević
  2020-07-22 23:37 ` Milan Stanojević
  0 siblings, 1 reply; 2+ messages in thread
From: Milan Stanojević @ 2020-07-20 16:41 UTC (permalink / raw)
  To: emacs-devel

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).



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-22 23:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-20 16:41 emacs modules memory leak in 27 Milan Stanojević
2020-07-22 23:37 ` Milan Stanojević

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.