pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Remove overzeleous assertions in pg_atomic_flag code. 4+ messages / 1 participants [nested] [flat]
* pgsql: Remove overzeleous assertions in pg_atomic_flag code. @ 2018-04-08 01:32 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 4+ messages in thread From: Andres Freund @ 2018-04-08 01:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Remove overzeleous assertions in pg_atomic_flag code. The atomics code asserts proper alignment in various places. That's mainly because the alignment of 64bit integers is not sufficient for atomic operations on all platforms. Some ABIs only have four byte alignment, but don't have atomic behavior when crossing page boundaries. The flags code isn't affected by that however, as the type alignment always is sufficient for atomic operations. Nevertheless the code asserted alignment requirements. Before 8c3debbb it was only broken on hppa, after it probably affect further platforms. Thus remove the assertions for pg_atomic_flag operators. Per buildfarm animal pademelon. Discussion: https://postgr.es/m/7223.1523124425@sss.pgh.pa.us Backpatch: 9.5- Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d234602c28e8e1baea342602dbb404cee9fde47e Modified Files -------------- src/include/port/atomics.h | 8 -------- 1 file changed, 8 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Remove overzeleous assertions in pg_atomic_flag code. @ 2018-04-08 01:32 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 4+ messages in thread From: Andres Freund @ 2018-04-08 01:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Remove overzeleous assertions in pg_atomic_flag code. The atomics code asserts proper alignment in various places. That's mainly because the alignment of 64bit integers is not sufficient for atomic operations on all platforms. Some ABIs only have four byte alignment, but don't have atomic behavior when crossing page boundaries. The flags code isn't affected by that however, as the type alignment always is sufficient for atomic operations. Nevertheless the code asserted alignment requirements. Before 8c3debbb it was only broken on hppa, after it probably affect further platforms. Thus remove the assertions for pg_atomic_flag operators. Per buildfarm animal pademelon. Discussion: https://postgr.es/m/7223.1523124425@sss.pgh.pa.us Backpatch: 9.5- Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/11b1a39e1642611aa31f9151aa198711d966a1be Modified Files -------------- src/include/port/atomics.h | 8 -------- 1 file changed, 8 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Remove overzeleous assertions in pg_atomic_flag code. @ 2018-04-08 01:33 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 4+ messages in thread From: Andres Freund @ 2018-04-08 01:33 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Remove overzeleous assertions in pg_atomic_flag code. The atomics code asserts proper alignment in various places. That's mainly because the alignment of 64bit integers is not sufficient for atomic operations on all platforms. Some ABIs only have four byte alignment, but don't have atomic behavior when crossing page boundaries. The flags code isn't affected by that however, as the type alignment always is sufficient for atomic operations. Nevertheless the code asserted alignment requirements. Before 8c3debbb it was only broken on hppa, after it probably affect further platforms. Thus remove the assertions for pg_atomic_flag operators. Per buildfarm animal pademelon. Discussion: https://postgr.es/m/7223.1523124425@sss.pgh.pa.us Backpatch: 9.5- Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5faead30d83189536ab1cf3ea0f8940239cc9838 Modified Files -------------- src/include/port/atomics.h | 8 -------- 1 file changed, 8 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Remove overzeleous assertions in pg_atomic_flag code. @ 2018-04-08 01:33 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 4+ messages in thread From: Andres Freund @ 2018-04-08 01:33 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Remove overzeleous assertions in pg_atomic_flag code. The atomics code asserts proper alignment in various places. That's mainly because the alignment of 64bit integers is not sufficient for atomic operations on all platforms. Some ABIs only have four byte alignment, but don't have atomic behavior when crossing page boundaries. The flags code isn't affected by that however, as the type alignment always is sufficient for atomic operations. Nevertheless the code asserted alignment requirements. Before 8c3debbb it was only broken on hppa, after it probably affect further platforms. Thus remove the assertions for pg_atomic_flag operators. Per buildfarm animal pademelon. Discussion: https://postgr.es/m/7223.1523124425@sss.pgh.pa.us Backpatch: 9.5- Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e68d64c52831eb2be013da4eb0e0bf9255c8bd7a Modified Files -------------- src/include/port/atomics.h | 8 -------- 1 file changed, 8 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2018-04-08 01:33 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-04-08 01:32 pgsql: Remove overzeleous assertions in pg_atomic_flag code. Andres Freund <andres@anarazel.de> 2018-04-08 01:32 pgsql: Remove overzeleous assertions in pg_atomic_flag code. Andres Freund <andres@anarazel.de> 2018-04-08 01:33 pgsql: Remove overzeleous assertions in pg_atomic_flag code. Andres Freund <andres@anarazel.de> 2018-04-08 01:33 pgsql: Remove overzeleous assertions in pg_atomic_flag code. Andres Freund <andres@anarazel.de>
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