all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu>
Subject: Re: garbace collection of point-markers
Date: 31 Jan 2003 12:21:01 -0500	[thread overview]
Message-ID: <5lptqd5j7m.fsf@rum.cs.yale.edu> (raw)
In-Reply-To: Kgx_9.15$is4.391@paloalto-snr1.gtei.net

>>>>> "Barry" == Barry Margolin <barmar@genuity.net> writes:
> Your test seems to show that the markers are *not* cleaned up by the GC.

They definitely should.  If they're not, it's a bug.
In the example posted by Pascal, it might simply be that the marker
is still referenced from the stack (more specifically, from a stack slot
which is actually dead, but the GC doesn't know it).

> Buffers keep track of the markers that point to them (so that they can be
> updated when the buffer is modified), and that keeps them from becoming
> garbage until the buffer is killed.  This would be an ideal application for
> "weak" references if Emacs Lisp had them, but AFAIK it doesn't.

Markers have been handled "weakly" for a long time and Emacs-21
additionally introduced weak hash tables.  So, AFAIK it does ;-)


        Stefan

  reply	other threads:[~2003-01-31 17:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-31  8:49 garbace collection of point-markers Stefan Kamphausen
2003-01-31 10:10 ` Pascal Bourguignon
2003-01-31 15:18   ` Kai Großjohann
2003-01-31 19:51     ` Pascal Bourguignon
2003-01-31 20:17       ` Barry Margolin
2003-02-01  4:00         ` Pascal Bourguignon
2003-01-31 16:13   ` Barry Margolin
2003-01-31 17:21     ` Stefan Monnier <foo@acm.com> [this message]
2003-02-03 18:04       ` Stefan Kamphausen
2003-01-31 19:02 ` Kevin Rodgers

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=5lptqd5j7m.fsf@rum.cs.yale.edu \
    --to=monnier+gnu.emacs.help/news/@flint.cs.yale.edu \
    /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.