From xemacs-m  Tue Mar 18 21:03:18 1997
Received: from mailbox2.ucsd.edu (mailbox2.ucsd.edu [132.239.1.54])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id VAA18322
	for <xemacs-beta@xemacs.org>; Tue, 18 Mar 1997 21:03:17 -0600 (CST)
Received: from sdnp5.ucsd.edu (sdnp5.ucsd.edu [132.239.79.10]) by mailbox2.ucsd.edu (8.8.5/8.6.9) with SMTP id TAA10501 for <xemacs-beta@xemacs.org>; Tue, 18 Mar 1997 19:03:17 -0800 (PST)
Received: by sdnp5.ucsd.edu (SMI-8.6/SMI-SVR4)
	id TAA19726; Tue, 18 Mar 1997 19:05:14 -0800
Sender: dmoore@sdnp5.ucsd.edu
To: xemacs-beta@xemacs.org
Subject: Re: relocating allocator?
References: <199703190029.QAA14028@roy> <QQchmd19318.199703190146@crystal.WonderWorks.COM> <m2n2s0podd.fsf@altair.xemacs.org>
X-Face: "oX;zS#-JU$-,WKSzG.1gGE]x^cIg!hW.dq>.f6pzS^A+(k!T|M:}5{_%>Io<>L&{hO7W4cicOQ|>/lZ1G(m%7iaCf,6Qgk0%%Bz7b2-W3jd0m_UG\Y;?]}4s0O-U)uox>P3JN)9cm]O\@,vy2e{`3pb!"pqmRy3peB90*2L
Mail-Copies-To: never
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
From: David Moore <dmoore@ucsd.edu>
Date: 18 Mar 1997 19:05:14 -0800
In-Reply-To: Steven L Baur's message of 18 Mar 1997 19:11:26 -0800
Message-ID: <rv209c1t05.fsf@sdnp5.ucsd.edu>
Lines: 26
X-Mailer: Gnus v5.4.28/XEmacs 19.15(beta100)

Steven L Baur <steve@miranova.com> writes:

> Kyle Jones writes:
> 
> jwz wrote 3 years ago:
> >     A side-effect of REL_ALLOC is that any call to malloc ***even in
> >     a library routine*** can cause buffer->text.beg to be relocated
> >     (and cause the ptr in text.beg, and only that ptr, to point to
> >     the new place.)
> 
>  ...
> 
> > I never found out if someone did a sweep of the code to look for such
> > caching of b->text.beg.  Because I don't know, I have built XEmacs
> > with --rel-alloc=no since then.
> 
> Ack!  Does QUIT ever call malloc?  There are multiple places in
> insdel.c where this pointer gets cached and used around calls to QUIT.

This isn't true of the mmap rel-alloc, btw, just the gnu ralloc version.

-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    | In a cloud bones of steel.

