Thread

  1. [PATCH v3 1/3] Remove fallback declaration for tas().

    Nathan Bossart <nathan@postgresql.org> — 2026-05-04T21:04:04Z

    The last definition of tas() in s_lock.c was removed in commit
    718aa43a4e, and the last tas.s file was removed in commit
    25f36066dd, so this is dead code.
    ---
     src/include/storage/s_lock.h | 7 -------
     1 file changed, 7 deletions(-)
    
    diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
    index c9e52511990..dcfec8ce2af 100644
    --- a/src/include/storage/s_lock.h
    +++ b/src/include/storage/s_lock.h
    @@ -697,13 +697,6 @@ extern void s_unlock(volatile slock_t *lock);
     #define SPIN_DELAY()	((void) 0)
     #endif	 /* SPIN_DELAY */
     
    -#if !defined(TAS)
    -extern int	tas(volatile slock_t *lock);		/* in port/.../tas.s, or
    -												 * s_lock.c */
    -
    -#define TAS(lock)		tas(lock)
    -#endif	 /* TAS */
    -
     #if !defined(TAS_SPIN)
     #define TAS_SPIN(lock)	TAS(lock)
     #endif	 /* TAS_SPIN */
    -- 
    2.50.1 (Apple Git-155)
    
    
    --IHFkEDr8CkxIje3R
    Content-Type: text/plain; charset=us-ascii
    Content-Disposition: attachment;
    	filename=v3-0002-Remove-HAS_TEST_AND_SET.patch