postgresql/src/backend
Tom Lane 2a2352e07d Replace memcpy() calls in xlog.c critical sections with struct assignments.
This gets rid of a dangerous-looking use of the not-volatile XLogCtl
pointer in a couple of spinlock-protected sections, where the normal
coding rule is that you should only access shared memory through a
pointer-to-volatile.  I think the risk is only hypothetical not actual,
since for there to be a bug the compiler would have to move the spinlock
acquire or release across the memcpy() call, which one sincerely hopes
it will not.  Still, it looks cleaner this way.

Per comment from Daniel Farina and subsequent discussion.
2012-09-03 15:39:15 -04:00
..
access Replace memcpy() calls in xlog.c critical sections with struct assignments. 2012-09-03 15:39:15 -04:00
bootstrap Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
catalog Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
commands Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
executor Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
foreign Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
lib Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
libpq Support having multiple Unix-domain sockets per postmaster. 2012-08-10 17:27:15 -04:00
main Unify calling conventions for postgres/postmaster sub-main functions 2012-06-25 21:30:12 +03:00
nodes Drop cheap-startup-cost paths during add_path() if we don't need them. 2012-09-01 18:16:24 -04:00
optimizer Drop cheap-startup-cost paths during add_path() if we don't need them. 2012-09-01 18:16:24 -04:00
parser Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
po Translation updates 2011-08-17 14:07:46 +03:00
port Remove misleading hints about reducing the System V request size. 2012-07-03 10:07:47 -04:00
postmaster Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
regex Prevent corner-case core dump in rfree(). 2012-07-15 13:27:54 -04:00
replication Fix typos in README. 2012-08-31 11:30:11 +03:00
rewrite Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
snowball Remove configure flag --disable-shared, as it is no longer used by any 2012-08-30 16:26:53 -04:00
storage Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
tcop Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
tsearch Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
utils Make configure probe for mbstowcs_l as well as wcstombs_l. 2012-08-31 14:17:56 -04:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
Makefile Fix incorrect make maintainer-clean rule. 2012-04-07 18:16:50 -04:00
common.mk Call check_keywords.pl in maintainer-check 2012-02-27 13:53:12 +02:00
nls.mk Sort file list when creating gettext-files 2011-12-27 20:20:56 +02:00