From: Andres Freund Date: Wed, 24 Jun 2020 23:35:49 +0000 (-0700) Subject: aio: WIP: align PGAlignedBlock to page size X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=7940f5a43fc10275d99db6d4cde8a8e4adb55bae;p=users%2Fandresfreund%2Fpostgres.git aio: WIP: align PGAlignedBlock to page size Author: Reviewed-By: Discussion: https://postgr.es/m/ Backpatch: --- diff --git a/src/include/c.h b/src/include/c.h index ae978830da..f1cc66354b 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -1129,7 +1129,7 @@ typedef union PGAlignedBlock char data[BLCKSZ]; double force_align_d; int64 force_align_i64; -} PGAlignedBlock; +} PGAlignedBlock __attribute__((aligned(4096))); /* Same, but for an XLOG_BLCKSZ-sized buffer */ typedef union PGAlignedXLogBlock @@ -1137,7 +1137,7 @@ typedef union PGAlignedXLogBlock char data[XLOG_BLCKSZ]; double force_align_d; int64 force_align_i64; -} PGAlignedXLogBlock; +} PGAlignedXLogBlock __attribute__((aligned(4096))); /* msb for char */ #define HIGHBIT (0x80)