Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix paginator counter on x86-32 #2420
Atomic operations with 64 bit values must be aligned for 64-bit on x86-32.
According to the spec:
"The first word in a global variable or in an allocated struct or slice can be relied upon to be 64-bit aligned."
The above wasn't enough for the
This commit adds a 4 byte padding before the
Sep 9, 2016
Here I document for myself (and others) some points you may already know. Per
Per Bugs (in
From this, (for 32-bit systems), I take that:
An array of SiteInfo is created here by
Per the discussion referenced above, on 32-bit machines, perhaps:
Some research revealed that automatically aligning the size of a struct (on 32-bit machines) to a multiple of 64 bits seems difficult.