diff options
| author | Paul Eggert | 2012-08-03 16:40:20 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-08-03 16:40:20 -0700 |
| commit | 1175def2d5507b562f6e56fef042322e0afd9f86 (patch) | |
| tree | 2a6cba81cb9f98d4563e52c25ffba9a981d391a5 /src | |
| parent | 98c6f1e36ff487925280fa0b0340af9d058632b5 (diff) | |
| download | emacs-1175def2d5507b562f6e56fef042322e0afd9f86.tar.gz emacs-1175def2d5507b562f6e56fef042322e0afd9f86.zip | |
Comment why gc_aset can be triggered during GC.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lisp.h | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
| 2358 | LISP_INLINE void | 2358 | LISP_INLINE void |
| 2359 | gc_aset (Lisp_Object array, ptrdiff_t idx, Lisp_Object val) | 2359 | gc_aset (Lisp_Object array, ptrdiff_t idx, Lisp_Object val) |
| 2360 | { | 2360 | { |
| 2361 | /* Like ASET, but also can be used in the garbage collector. */ | 2361 | /* Like ASET, but also can be used in the garbage collector: |
| 2362 | sweep_weak_table calls set_hash_key etc. while the table is marked. */ | ||
| 2362 | eassert (0 <= idx && idx < (ASIZE (array) & ~ARRAY_MARK_FLAG)); | 2363 | eassert (0 <= idx && idx < (ASIZE (array) & ~ARRAY_MARK_FLAG)); |
| 2363 | XVECTOR (array)->contents[idx] = val; | 2364 | XVECTOR (array)->contents[idx] = val; |
| 2364 | } | 2365 | } |