unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* A quick question about pseudo-vectors
@ 2013-12-24 17:09 Michael Welsh Duggan
  2013-12-24 18:32 ` Paul Eggert
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Welsh Duggan @ 2013-12-24 17:09 UTC (permalink / raw)
  To: emacs-devel

A quick, simple question about pseudo-vectors...  Is there a guarantee
that once allocated, a pseudo-vector object will not be relocated in
memory during its life cycle?

-- 
Michael Welsh Duggan
(md5i@md5i.com)



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

* Re: A quick question about pseudo-vectors
  2013-12-24 17:09 A quick question about pseudo-vectors Michael Welsh Duggan
@ 2013-12-24 18:32 ` Paul Eggert
  2013-12-24 18:50   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggert @ 2013-12-24 18:32 UTC (permalink / raw)
  To: emacs-devel

Michael Welsh Duggan wrote:
> Is there a guarantee
> that once allocated, a pseudo-vector object will not be relocated in
> memory during its life cycle?

Yes, because the Emacs garbage collector doesn't relocate objects.



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

* Re: A quick question about pseudo-vectors
  2013-12-24 18:32 ` Paul Eggert
@ 2013-12-24 18:50   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2013-12-24 18:50 UTC (permalink / raw)
  To: Paul Eggert; +Cc: emacs-devel

> Date: Tue, 24 Dec 2013 10:32:26 -0800
> From: Paul Eggert <eggert@cs.ucla.edu>
> 
> Michael Welsh Duggan wrote:
> > Is there a guarantee
> > that once allocated, a pseudo-vector object will not be relocated in
> > memory during its life cycle?
> 
> Yes, because the Emacs garbage collector doesn't relocate objects.

But ralloc.c does (on systems that use it).  However, pseudo-vectors
are not relocated, because they are not large enough to bother.



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

end of thread, other threads:[~2013-12-24 18:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-24 17:09 A quick question about pseudo-vectors Michael Welsh Duggan
2013-12-24 18:32 ` Paul Eggert
2013-12-24 18:50   ` Eli Zaretskii

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