diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-10-14 10:01:00 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-10-14 10:05:17 +0300 |
commit | 4971c36b46c63c0b36a38df6a4b6ad9f303e4620 (patch) | |
tree | b8b3fd20e587eec060ee2498f275d713819d6977 /src/backend/utils/misc/tzparser.c | |
parent | 4dbc7606cfc8188646a2e302ef5e6a5ec3c962af (diff) |
Don't let protected variable access to be reordered after spinlock release.
LWLockAcquireWithVar needs to set the protected variable while holding
the spinlock. Need to use a volatile pointer to make sure it doesn't get
reordered by the compiler. The other functions that accessed the protected
variable already got this right.
9.4 only. Earlier releases didn't have this code, and in master, spinlock
release acts as a compiler barrier.
Diffstat (limited to 'src/backend/utils/misc/tzparser.c')
0 files changed, 0 insertions, 0 deletions