From: Greg Stark <stark@mit.edu>
To: pgsql-committers@postgresql.org
Subject: pgsql: Be conservative about alignment requirements of struct epoll_eve
Date: Thu, 02 Jun 2016 18:42:24 +0000
Message-ID: <E1b8XZY-0000TG-1i@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/a3b30763cc8686f5b4cd121ef0bf510c1533ac22
Modified Files
--------------
src/backend/storage/ipc/latch.c | 30 ++++++++++++++++++------------
1 file changed, 18 insertions(+), 12 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: stark@mit.edu
Subject: Re: pgsql: Be conservative about alignment requirements of struct epoll_eve
In-Reply-To: <E1b8XZY-0000TG-1i@gemulon.postgresql.org>
References: <E1b8XZY-0000TG-1i@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox