[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: memory management question
- To: firstname.lastname@example.org
- Subject: Re: memory management question
- From: email@example.com (Neves )
- Date: 8 Dec 1993 22:32:56 GMT
- Distribution: world
- Newsgroups: comp.lang.lisp.mcl
- Organization: The Institute for the Learning Sciences
- References: <9312082148.AA23306@cambridge.apple.com>
Kalman Reti (firstname.lastname@example.org) wrote:
: I believe your guess is correct; when there isn't enough room in the Mac heap,
: the mac invokes a growzone procedure which, in the case of MCL, gives up some
: Lisp heap to make more Mac heap.
: The only way I know of to eliminate these pauses is to have the Mac heap be big
: enough in the first place; see the arguments to save-application in the MCL 2.0
: release notes for how to save a copy of MCL with a larger amount of space dedicated
: to the Mac heap.
(Below is a function that will also do this.)
I reponded to Kalman that it would be nice to be able to turn off the
raiding of the Lisp Heap by memory hungry toolbox functions. This
only way (I think) of doing this is to substitute a dummy grow zone
function for the one that Lisp uses.
;;; Try to set the mac heap to "size".
(defun set-mac-heap-size (size)
(when (> size (#_freemem))
(setq p (#_newptr
(if (%null-ptr-p p) nil (#_disposptr p)))))