diff options
author | Greg Stark <stark@mit.edu> | 2016-06-02 19:23:25 +0100 |
---|---|---|
committer | Greg Stark <stark@mit.edu> | 2016-06-02 19:38:52 +0100 |
commit | a3b30763cc8686f5b4cd121ef0bf510c1533ac22 (patch) | |
tree | 70ec3d1a07fffb04ecfc01fef69f1e2d77687f06 /src/backend/utils/adt/geo_spgist.c | |
parent | 4edb7bd2fd6a48f6104c73551423cb208e13e529 (diff) | |
download | postgresql-a3b30763cc8686f5b4cd121ef0bf510c1533ac22.tar.gz postgresql-a3b30763cc8686f5b4cd121ef0bf510c1533ac22.zip |
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
Diffstat (limited to 'src/backend/utils/adt/geo_spgist.c')
0 files changed, 0 insertions, 0 deletions