1
0
mirror of https://github.com/rclone/rclone.git synced 2025-02-14 21:23:01 +02:00
r-ricci 67fd60275a
union: fix panic due to misalignment of struct field in 32 bit architectures
`FS.cacheExpiry` is accessed through sync/atomic.
According to the documentation, "On ARM, 386, and 32-bit MIPS, it is
the caller's responsibility to arrange for 64-bit alignment of 64-bit
words accessed atomically. The first word in a variable or in an
allocated struct, array, or slice can be relied upon to be 64-bit
aligned."
Before commit 1d2fe0d8564bc679ece166c24b24e6fe7dc1455c this field was
aligned, but then a new field was added to the structure, causing the
test suite to panic on linux/386.
No other field is used with sync/atomic, so `cacheExpiry` can just be
placed at the beginning of the stuct to ensure it is always aligned.
2022-07-11 18:34:06 +01:00
..
2021-10-20 22:56:19 +02:00
2022-07-08 18:24:54 +01:00
2022-06-29 17:30:37 +01:00
2022-06-29 17:30:37 +01:00
2022-06-29 17:30:37 +01:00
2022-07-04 11:24:59 +02:00
2022-06-16 15:45:42 +02:00
2022-05-13 12:08:10 +01:00
2022-05-12 20:43:54 +01:00
2022-07-04 11:24:59 +02:00