Mercurial > emacs
comparison lispref/internals.texi @ 71077:e610fb70748a
(Pure Storage): Mention that an overflow in pure
space causes a memory leak.
(Garbage Collection): If there was an overflow in pure space,
`garbage-collect' returns nil.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Mon, 29 May 2006 22:26:25 +0000 |
parents | 97c00016e50b |
children | 3184a667d8db a8190f7e546e |
comparison
equal
deleted
inserted
replaced
71076:495e2dcf9392 | 71077:e610fb70748a |
---|---|
158 allocated when Emacs is compiled, and if that is not sufficient for | 158 allocated when Emacs is compiled, and if that is not sufficient for |
159 the preloaded libraries, @file{temacs} allocates dynamic memory for | 159 the preloaded libraries, @file{temacs} allocates dynamic memory for |
160 the part that didn't fit. If that happens, you should increase the | 160 the part that didn't fit. If that happens, you should increase the |
161 compilation parameter @code{PURESIZE} in the file | 161 compilation parameter @code{PURESIZE} in the file |
162 @file{src/puresize.h} and rebuild Emacs, even though the resulting | 162 @file{src/puresize.h} and rebuild Emacs, even though the resulting |
163 image will work. Such an overflow normally won't happen unless you | 163 image will work: garbage collection is disabled in this situation, |
164 causing a memory leak. Such an overflow normally won't happen unless you | |
164 try to preload additional libraries or add features to the standard | 165 try to preload additional libraries or add features to the standard |
165 ones. Emacs will display a warning about the overflow when it | 166 ones. Emacs will display a warning about the overflow when it |
166 starts. | 167 starts. |
167 | 168 |
168 @defun purecopy object | 169 @defun purecopy object |
346 The number of string headers for which the space was obtained from the | 347 The number of string headers for which the space was obtained from the |
347 operating system, but which are currently not in use. (A string | 348 operating system, but which are currently not in use. (A string |
348 object consists of a header and the storage for the string text | 349 object consists of a header and the storage for the string text |
349 itself; the latter is only allocated when the string is created.) | 350 itself; the latter is only allocated when the string is created.) |
350 @end table | 351 @end table |
352 | |
353 If there was overflow in pure space (see the previous section), | |
354 @code{garbage-collect} returns @code{nil}, because a real garbage | |
355 collection can not be done in this situation. | |
351 @end deffn | 356 @end deffn |
352 | 357 |
353 @defopt garbage-collection-messages | 358 @defopt garbage-collection-messages |
354 If this variable is non-@code{nil}, Emacs displays a message at the | 359 If this variable is non-@code{nil}, Emacs displays a message at the |
355 beginning and end of garbage collection. The default value is | 360 beginning and end of garbage collection. The default value is |