pgsql: Remove volatile qualifiers from lwlock.c.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove volatile qualifiers from lwlock.c.
Date: 2014-09-22 20:54:30
Message-ID: E1XWAcw-0001WQ-9n@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove volatile qualifiers from lwlock.c.

Now that spinlocks (hopefully!) act as compiler barriers, as of commit
0709b7ee72e4bc71ad07b7120acd117265ab51d0, this should be safe. This
serves as a demonstration of the new coding style, and may be optimized
better on some machines as well.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/df4077cda2eae3eb4a5cf387da0c1e7616e73204

Modified Files
--------------
src/backend/storage/lmgr/lwlock.c | 103 ++++++++++++++++++-------------------
1 file changed, 50 insertions(+), 53 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2014-09-22 21:48:21 pgsql: Remove most volatile qualifiers from xlog.c
Previous Message Robert Haas 2014-09-22 20:33:34 pgsql: Fix compiler warning.