emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD


From: Helmut Eller
Subject: Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD
Date: Tue, 16 Jul 2024 16:19:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

On Tue, Jul 16 2024, Gerd Möllmann wrote:

> That's probably a misunderstanding. I'm thinking about a block of memory
> containing references, and the alignment of these references, not the
> alignment of the block.
>
> Example with sizeof(int) = 4, and sizeof(void *) = 8
>
>   struct x
>   {
>     int x;
>     struct Lisp_Symbol *s;
>   };
>
> What about the offset of x::s?

That's not a problem because offsetof(struct x, s) = 8. There are 4
bytes padding after x.  A problem could be if an unaligned void* is cast
to a struct Lisp_Symbol*; let's hope that nobody does that.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]