diff options
author | dormando <dormando@rydia.net> | 2018-03-15 12:57:51 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2018-03-15 12:57:51 -0700 |
commit | 8333182bc8da1c4b4d4b482f67658c60690320cc (patch) | |
tree | 71014f3675c68df7055a0cbcfdd5260cd02966b1 /logger.h | |
parent | 8bdf0a3bb92046814aebf920eda823d1718ce2c7 (diff) | |
download | memcached-8333182bc8da1c4b4d4b482f67658c60690320cc.tar.gz |
Fix SIGBUS from alignment issues on 64bit ARM
ARMv8 (and in general aarch64) has flipped some strictness requirements.
However, at some point in history the NEED_ALIGN configure check code was
optimized away by GCC.
This fixes detection of alignment, as well as fixes an unaligned access that
snuck in via the logging code.
Also fixes a 64bit GCC atomics test that possibly never worked before.
Diffstat (limited to 'logger.h')
-rw-r--r-- | logger.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -100,6 +100,7 @@ struct logentry_item_store { typedef struct _logentry { enum log_entry_subtype event; + uint8_t pad; uint16_t eflags; uint64_t gid; struct timeval tv; /* not monotonic! */ |