• Andres Freund's avatar
    Declare lwlock.c's LWLockAcquireCommon() as a static inline. · 9c4b55db
    Andres Freund authored
    68a2e52b 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().
    9c4b55db
lwlock.c 33.6 KB