aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/numeric.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2014-09-01 00:17:18 +0200
committerAndres Freund <andres@anarazel.de>2014-09-01 00:17:18 +0200
commit92b2c136580869fe9286a4d880d592d74f55d5b7 (patch)
treeb67227182bf7f23e39491dc5d7d7172a80d887d8 /src/backend/utils/adt/numeric.c
parentae70b9f0ec1f967aa84844274f26f519450b6b49 (diff)
downloadpostgresql-92b2c136580869fe9286a4d880d592d74f55d5b7.tar.gz
postgresql-92b2c136580869fe9286a4d880d592d74f55d5b7.zip
Declare lwlock.c's LWLockAcquireCommon() as a static inline.
68a2e52bbaf98f136 has introduced LWLockAcquireCommon() containing the previous contents of LWLockAcquire() plus added functionality. The latter then calls it, just like LWLockAcquireWithVar(). Because the majority of callers don't need the added functionality, declare the common code as inline. The compiler then can optimize away the unused code. Doing so is also useful when looking at profiles, to differentiate the users. Backpatch to 9.4, the first branch to contain LWLockAcquireCommon().
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions