Commit 1175def2 authored by Paul Eggert's avatar Paul Eggert

Comment why gc_aset can be triggered during GC.

parent 98c6f1e3
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment