aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c11
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
2716static void 2727static void