From 71cf5fa051283be4de2aea9eb078493add766e1e Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sat, 29 Dec 2001 12:47:29 +0000 Subject: [PATCH] Add a comment. --- src/alloc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) #if GC_MARK_STACK || defined GC_MALLOC_CHECK +/* Conservative C stack marking requires a method to identify possibly + live Lisp objects given a pointer value. We do this by keeping + track of blocks of Lisp data that are allocated in a red-black tree + (see also the comment of mem_node which is the type of nodes in + that tree). Function lisp_malloc adds information for an allocated + block to the red-black tree with calls to mem_insert, and function + lisp_free removes it with mem_delete. Functions live_string_p etc + call mem_find to lookup information about a given pointer in the + tree, and use that to determine if the pointer points to a Lisp + object or not. */ + /* Initialize this part of alloc.c. */ static void -- 2.39.5