Skip to content

Can you help me understand "fieldalignment: struct with 40 pointer bytes could be 8" ? #2298

Discussion options

You must be logged in to vote

For some reason I don't understand, moving the strings at the beginning of the struct rather than at the end (despite having no effect on the size of the struct itself, see link in cristaloleg's answer) did the trick.

Replies: 6 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@floppyzedolfin
Comment options

Comment options

You must be logged in to vote
2 replies
@frederikhors
Comment options

@floppyzedolfin
Comment options

Answer selected by floppyzedolfin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@frederikhors
Comment options

@butuzov
Comment options

@zvonkok
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants