forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9c4b55d
committed
Declare lwlock.c's LWLockAcquireCommon() as a static inline.
68a2e52 has introduced LWLockAcquireCommon() containing theprevious contents of LWLockAcquire() plus added functionality. Thelatter then calls it, just like LWLockAcquireWithVar(). Because themajority of callers don't need the added functionality, declare thecommon code as inline. The compiler then can optimize away the unusedcode. Doing so is also useful when looking at profiles, todifferentiate the users.Backpatch to 9.4, the first branch to contain LWLockAcquireCommon().1 parent5c1faa7 commit9c4b55d
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
88 |
| - | |
89 |
| - | |
| 88 | + | |
| 89 | + | |
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
| |||
510 | 510 |
| |
511 | 511 |
| |
512 | 512 |
| |
513 |
| - | |
| 513 | + | |
514 | 514 |
| |
515 | 515 |
| |
516 | 516 |
| |
|
0 commit comments
Comments
(0)