Be conservative about alignment requirements of struct epoll_event.

Greg Stark <stark@mit.edu>

Commit: a3b30763cc8686f5b4cd121ef0bf510c1533ac22
Author: Greg Stark <stark@mit.edu>
Date: 2016-06-02T18:38:52Z
Releases: 9.6.0
Be conservative about alignment requirements of struct epoll_event.

Use MAXALIGN size/alignment to guarantee that later uses of memory are
aligned correctly. E.g. epoll_event might need 8 byte alignment on some
platforms, but earlier allocations like WaitEventSet and WaitEvent might
not sized to guarantee that when purely using sizeof().

Found by myself while testing on an Sun Ultra 5 (Sparc IIi) with some
editorializing by Andres Freund.

In passing fix a couple typos in the area

Files

PathChange+/−
src/backend/storage/ipc/latch.c modified +18 −12