diff options
| author | Gerd Moellmann | 2001-12-29 12:47:29 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-12-29 12:47:29 +0000 |
| commit | 71cf5fa051283be4de2aea9eb078493add766e1e (patch) | |
| tree | b2331c4ab46667a9efaf41f8b90a6de7ba899c27 /src/alloc.c | |
| parent | 6edcfe1a02a7b9a88140aad8c4916844bf92b467 (diff) | |
| download | emacs-71cf5fa051283be4de2aea9eb078493add766e1e.tar.gz emacs-71cf5fa051283be4de2aea9eb078493add766e1e.zip | |
Add a comment.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index 52cada7aba5..4ea7470fe8d 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -2711,6 +2711,17 @@ make_event_array (nargs, args) | |||
| 2711 | 2711 | ||
| 2712 | #if GC_MARK_STACK || defined GC_MALLOC_CHECK | 2712 | #if GC_MARK_STACK || defined GC_MALLOC_CHECK |
| 2713 | 2713 | ||
| 2714 | /* Conservative C stack marking requires a method to identify possibly | ||
| 2715 | live Lisp objects given a pointer value. We do this by keeping | ||
| 2716 | track of blocks of Lisp data that are allocated in a red-black tree | ||
| 2717 | (see also the comment of mem_node which is the type of nodes in | ||
| 2718 | that tree). Function lisp_malloc adds information for an allocated | ||
| 2719 | block to the red-black tree with calls to mem_insert, and function | ||
| 2720 | lisp_free removes it with mem_delete. Functions live_string_p etc | ||
| 2721 | call mem_find to lookup information about a given pointer in the | ||
| 2722 | tree, and use that to determine if the pointer points to a Lisp | ||
| 2723 | object or not. */ | ||
| 2724 | |||
| 2714 | /* Initialize this part of alloc.c. */ | 2725 | /* Initialize this part of alloc.c. */ |
| 2715 | 2726 | ||
| 2716 | static void | 2727 | static void |