forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitde6429a
committed
Provide a generic fallback for pg_compiler_barrier using an extern function.
If the compiler/arch combination does not provide compiler barriers,provide a fallback. That fallback simply consists out of a functioncall into a externally defined function. That should guaranteecompiler barrierer semantics except for compilers that do intertranslation unit/global optimization - those better provide an actualcompiler barrier.Hopefully this fixes Tom's report of linker failures due topg_compiler_barrier_impl not being provided.I'm not backpatching this commit as it builds on the new atomicsinfrastructure. If we decide an equivalent fix needs to bebackpatched, I'll do so in a separate commit.Discussion: 27746.1420930690@sss.pgh.pa.usPer report from Tom Lane.1 parentdb4ec2f commitde6429a
2 files changed
+24
-0
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 |
| |
36 | 44 |
| |
37 | 45 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
38 | 54 |
| |
39 | 55 |
| |
40 | 56 |
| |
|
0 commit comments
Comments
(0)