aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorStefan Monnier2012-07-19 07:39:38 -0400
committerStefan Monnier2012-07-19 07:39:38 -0400
commit5db81e33629049da22e7d0ff6c28a5cae31edac9 (patch)
treea30274d3c351832f8ed0baacd2d178bd0e0fe93c /src/alloc.c
parent5b835e1d6e0c6fafc7f27174889358bfde5f2449 (diff)
downloademacs-5db81e33629049da22e7d0ff6c28a5cae31edac9.tar.gz
emacs-5db81e33629049da22e7d0ff6c28a5cae31edac9.zip
* lisp/emacs-lisp/chart.el: Use lexical-binding.
(chart-emacs-storage): Don't hardcode the list of entries. * src/alloc.c (Fgarbage_collect): Tweak docstring.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/alloc.c b/src/alloc.c
index c52b0475352..d24787576e9 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -5378,17 +5378,14 @@ DEFUN ("garbage-collect", Fgarbage_collect, Sgarbage_collect, 0, 0, "",
5378 doc: /* Reclaim storage for Lisp objects no longer needed. 5378 doc: /* Reclaim storage for Lisp objects no longer needed.
5379Garbage collection happens automatically if you cons more than 5379Garbage collection happens automatically if you cons more than
5380`gc-cons-threshold' bytes of Lisp data since previous garbage collection. 5380`gc-cons-threshold' bytes of Lisp data since previous garbage collection.
5381`garbage-collect' normally returns a list with info on amount of space in use: 5381`garbage-collect' normally returns a list with info on amount of space in use,
5382 ((CONS INTERNAL-SIZE USED-CONSES FREE-CONSES) 5382where each entry has the form (NAME SIZE USED FREE), where:
5383 (SYMBOL INTERNAL-SIZE USED-SYMBOLS FREE-SYMBOLS) 5383- NAME is a symbol describing the kind of objects this entry represents,
5384 (MISC INTERNAL-SIZE USED-MISCS FREE-MISCS) 5384- SIZE is the number of bytes used by each one,
5385 (STRING INTERNAL-SIZE USED-STRINGS FREE-STRING) 5385- USED is the number of those objects that were found live in the heap,
5386 (STRING-BYTES 1 USED-STRING-BYTES) 5386- FREE is the number of those objects that are not live but that Emacs
5387 (VECTOR INTERNAL-SIZE USED-VECTORS) 5387 keeps around for future allocations (maybe because it does not know how
5388 (VECTOR-SLOTS INTERNAL-SIZE USED-VECTOR-SLOTS FREE-VECTOR-SLOTS) 5388 to return them to the OS).
5389 (FLOAT INTERNAL-SIZE USED-FLOATS FREE-FLOATS)
5390 (INTERVAL INTERNAL-SIZE USED-INTERVALS FREE-INTERVALS)
5391 (BUFFER INTERNAL-SIZE USED-BUFFERS))
5392However, if there was overflow in pure space, `garbage-collect' 5389However, if there was overflow in pure space, `garbage-collect'
5393returns nil, because real GC can't be done. 5390returns nil, because real GC can't be done.
5394See Info node `(elisp)Garbage Collection'. */) 5391See Info node `(elisp)Garbage Collection'. */)