From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Declare lwlock.c's LWLockAcquireCommon() as a static inline. |
Date: | 2014-08-31 22:17:41 |
Message-ID: | E1XODRN-0005sE-TJ@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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().
Branch
------
REL9_4_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/92b2c136580869fe9286a4d880d592d74f55d5b7
Modified Files
--------------
src/backend/storage/lmgr/lwlock.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2014-09-01 10:03:13 | pgsql: Fix s/pluggins/plugins/ typo in two comments. |
Previous Message | Andres Freund | 2014-08-31 22:17:38 | pgsql: Declare lwlock.c's LWLockAcquireCommon() as a static inline. |