From 1175def2d5507b562f6e56fef042322e0afd9f86 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 3 Aug 2012 16:40:20 -0700 Subject: [PATCH] Comment why gc_aset can be triggered during GC. --- src/lisp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lisp.h b/src/lisp.h index 4a538045a80..dcdc23ef3f0 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -2358,7 +2358,8 @@ aref_addr (Lisp_Object array, ptrdiff_t idx) LISP_INLINE void gc_aset (Lisp_Object array, ptrdiff_t idx, Lisp_Object val) { - /* Like ASET, but also can be used in the garbage collector. */ + /* Like ASET, but also can be used in the garbage collector: + sweep_weak_table calls set_hash_key etc. while the table is marked. */ eassert (0 <= idx && idx < (ASIZE (array) & ~ARRAY_MARK_FLAG)); XVECTOR (array)->contents[idx] = val; } -- 2.39.2