mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-04 14:40:54 -08:00
* alloc.c: Add comment.
This commit is contained in:
parent
de0bde6284
commit
84e8e185cd
1 changed files with 5 additions and 0 deletions
|
|
@ -4235,6 +4235,11 @@ mark_maybe_pointer (void *p)
|
|||
}
|
||||
|
||||
|
||||
/* Alignment of Lisp_Object and pointer values. Use offsetof, as it
|
||||
sometimes returns a smaller alignment than GCC's __alignof__ and
|
||||
mark_memory might miss objects if __alignof__ were used. For
|
||||
example, on x86 with WIDE_EMACS_INT, __alignof__ (Lisp_Object) is 8
|
||||
but GC_LISP_OBJECT_ALIGNMENT should be 4. */
|
||||
#ifndef GC_LISP_OBJECT_ALIGNMENT
|
||||
# define GC_LISP_OBJECT_ALIGNMENT offsetof (struct {char a; Lisp_Object b;}, b)
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue