- Notifications
You must be signed in to change notification settings - Fork5
Commit07eeb9d
committed
Do all accesses to shared buffer headers through volatile-qualified
pointers, to ensure that compilers won't rearrange accesses to occurwhile we're not holding the buffer header spinlock. It's probablynot necessary to mark volatile in every single place in bufmgr.c,but better safe than sorry. Per trouble report from Kevin Grittner.1 parent6b97e43 commit07eeb9d
File tree
4 files changed
+64
-71
lines changed- contrib/pg_buffercache
- src
- backend/storage/buffer
- include/storage
4 files changed
+64
-71
lines changedLines changed: 7 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 |
| - | |
76 | 75 |
| |
77 |
| - | |
78 |
| - | |
| 76 | + | |
79 | 77 |
| |
80 | 78 |
| |
81 | 79 |
| |
| |||
136 | 134 |
| |
137 | 135 |
| |
138 | 136 |
| |
139 |
| - | |
140 |
| - | |
141 | 137 |
| |
142 |
| - | |
143 |
| - | |
144 |
| - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
145 | 141 |
| |
146 | 142 |
| |
147 |
| - | |
148 |
| - | |
| 143 | + | |
149 | 144 |
| |
150 |
| - | |
151 | 145 |
| |
152 |
| - | |
153 | 146 |
| |
154 |
| - | |
155 | 147 |
| |
156 | 148 |
| |
157 |
| - | |
158 |
| - | |
| 149 | + | |
159 | 150 |
| |
160 |
| - | |
161 | 151 |
| |
162 |
| - | |
163 | 152 |
| |
164 |
| - | |
165 | 153 |
| |
166 | 154 |
| |
167 |
| - | |
168 | 155 |
| |
169 | 156 |
| |
170 | 157 |
| |
|
0 commit comments
Comments
(0)