- Notifications
You must be signed in to change notification settings - Fork5
Commit14e8803
committed
Add barriers to the latch code.
Since their introduction latches have required barriers in SetLatchand ResetLatch - but when they were introduced there wasn't anybarrier abstraction. Instead latches were documented to rely on thecallsites to provide barrier semantics.Now that the barrier support looks halfway complete, add the necessarybarriers to both latch implementations.Also remove a now superflous lock acquisition from syncrep.c and asuperflous (and insufficient) barrier from freelist.c. There might beother cases that can now be simplified, but those are the only onesI've seen on a quick scan.We might want to backpatch this at some later point, but right now thebarrier infrastructure in the backbranches isn't totally on par withmaster.Discussion: 20150112154026.GB2092@awork2.anarazel.de1 parent4bad60e commit14e8803
File tree
5 files changed
+23
-27
lines changed- src
- backend
- port
- replication
- storage/buffer
- include/storage
5 files changed
+23
-27
lines changedLines changed: 7 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
| 54 | + | |
54 | 55 |
| |
55 | 56 |
| |
56 | 57 |
| |
| |||
515 | 516 |
| |
516 | 517 |
| |
517 | 518 |
| |
518 |
| - | |
519 |
| - | |
520 |
| - | |
521 |
| - | |
522 |
| - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
523 | 522 |
| |
| 523 | + | |
524 | 524 |
| |
525 | 525 |
| |
526 | 526 |
| |
| |||
574 | 574 |
| |
575 | 575 |
| |
576 | 576 |
| |
577 |
| - | |
578 |
| - | |
| 577 | + | |
579 | 578 |
| |
580 | 579 |
| |
581 | 580 |
| |
582 |
| - | |
583 |
| - | |
584 | 581 |
| |
| 582 | + | |
585 | 583 |
| |
586 | 584 |
| |
587 | 585 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| 30 | + | |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
| |||
293 | 294 |
| |
294 | 295 |
| |
295 | 296 |
| |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
296 | 304 |
| |
297 | 305 |
| |
298 | 306 |
| |
| |||
325 | 333 |
| |
326 | 334 |
| |
327 | 335 |
| |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
328 | 344 |
|
Lines changed: 0 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
172 | 172 |
| |
173 | 173 |
| |
174 | 174 |
| |
175 |
| - | |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 |
| - | |
181 | 175 |
| |
182 | 176 |
| |
183 | 177 |
| |
184 |
| - | |
185 |
| - | |
186 | 178 |
| |
187 |
| - | |
188 |
| - | |
189 | 179 |
| |
190 | 180 |
| |
191 | 181 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
217 |
| - | |
218 | 217 |
| |
219 | 218 |
| |
220 | 219 |
| |
|
Lines changed: 0 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 | 60 |
| |
68 | 61 |
| |
69 | 62 |
| |
|
0 commit comments
Comments
(0)