forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5cfa8dd
committed
Use mutex hint bit in PPC LWARX instructions, where possible.
The hint bit makes for a small but measurable performance improvementin access to contended spinlocks.On the other hand, some PPC chips give an illegal-instruction failure.There doesn't seem to be a completely bulletproof way to tell whether thehint bit will cause an illegal-instruction failure other than by tryingit; but most if not all 64-bit PPC machines should accept it, so followthe Linux kernel's lead and assume it's okay to use it in 64-bit builds.Of course we must also check whether the assembler accepts the command,since even with a recent CPU the toolchain could be old.Patch by Manabu Ori, significantly modified by me.1 parent6b6137e commit5cfa8dd
File tree
5 files changed
+104
-3
lines changed- src/include
- storage
5 files changed
+104
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1635 | 1635 | | |
1636 | 1636 | | |
1637 | 1637 | | |
1638 | | - | |
| 1638 | + | |
1639 | 1639 | | |
1640 | 1640 | | |
1641 | 1641 | | |
| |||
18207 | 18207 | | |
18208 | 18208 | | |
18209 | 18209 | | |
| 18210 | + | |
| 18211 | + | |
| 18212 | + | |
| 18213 | + | |
| 18214 | + | |
| 18215 | + | |
| 18216 | + | |
| 18217 | + | |
| 18218 | + | |
| 18219 | + | |
| 18220 | + | |
| 18221 | + | |
| 18222 | + | |
| 18223 | + | |
| 18224 | + | |
| 18225 | + | |
| 18226 | + | |
| 18227 | + | |
| 18228 | + | |
| 18229 | + | |
| 18230 | + | |
| 18231 | + | |
| 18232 | + | |
| 18233 | + | |
| 18234 | + | |
| 18235 | + | |
| 18236 | + | |
| 18237 | + | |
| 18238 | + | |
| 18239 | + | |
| 18240 | + | |
| 18241 | + | |
| 18242 | + | |
| 18243 | + | |
| 18244 | + | |
| 18245 | + | |
| 18246 | + | |
| 18247 | + | |
| 18248 | + | |
| 18249 | + | |
| 18250 | + | |
| 18251 | + | |
| 18252 | + | |
| 18253 | + | |
| 18254 | + | |
| 18255 | + | |
| 18256 | + | |
| 18257 | + | |
| 18258 | + | |
| 18259 | + | |
| 18260 | + | |
| 18261 | + | |
| 18262 | + | |
| 18263 | + | |
| 18264 | + | |
| 18265 | + | |
| 18266 | + | |
| 18267 | + | |
| 18268 | + | |
| 18269 | + | |
18210 | 18270 | | |
18211 | 18271 | | |
18212 | 18272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
1173 | | - | |
| 1173 | + | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
1178 | 1194 | | |
1179 | 1195 | | |
1180 | 1196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
387 | 390 | | |
388 | 391 | | |
389 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
173 | 191 | | |
174 | 192 | | |
175 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
375 | 378 | | |
| 379 | + | |
376 | 380 | | |
377 | 381 | | |
378 | 382 | | |
| |||
0 commit comments
Comments
(0)