forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit88ea7a1
committed
Choose ppc compare_exchange constant path for more operand values.
The implementation uses smaller code when the "expected" operand is asmall constant, but the implementation needlessly defined the set ofacceptable constants more narrowly than the ABI does. Core PostgreSQLand PGXN don't use the constant path at all, so this is future-proofing.Back-patch to v13, where commit30ee5d1introduced this code.Reviewed by Tom Lane. Reported by Christoph Berg.Discussion:https://postgr.es/m/20201009092825.GD889580@msg.df7cb.de1 parentf5c1167 commit88ea7a1
2 files changed
+12
-10
lines changedLines changed: 4 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 | 75 |
| |
84 | 76 |
| |
85 | 77 |
| |
| |||
94 | 86 |
| |
95 | 87 |
| |
96 | 88 |
| |
97 |
| - | |
| 89 | + | |
| 90 | + | |
98 | 91 |
| |
99 | 92 |
| |
100 | 93 |
| |
| |||
183 | 176 |
| |
184 | 177 |
| |
185 | 178 |
| |
186 |
| - | |
| 179 | + | |
| 180 | + | |
187 | 181 |
| |
188 | 182 |
| |
189 | 183 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
720 | 720 |
| |
721 | 721 |
| |
722 | 722 |
| |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
723 | 731 |
| |
724 | 732 |
| |
725 | 733 |
| |
|
0 commit comments
Comments
(0)