From: Paul Eggert Date: Fri, 3 Aug 2012 23:40:20 +0000 (-0700) Subject: Comment why gc_aset can be triggered during GC. X-Git-Tag: emacs-24.2.90~867 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1175def2d5507b562f6e56fef042322e0afd9f86;p=emacs.git Comment why gc_aset can be triggered during GC. --- 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; }