public inbox for [email protected]
help / color / mirror / Atom feedFrom: Kirill Reshke <[email protected]>
To: Nathan Bossart <[email protected]>
Cc: [email protected]
Subject: Re: small cleanup for s_lock.h
Date: Tue, 5 May 2026 03:20:46 +0500
Message-ID: <CALdSSPgchta97kNGkbPVXa88+d-=Z_pKsfHUx_2qT2R63N=_sw@mail.gmail.com> (raw)
In-Reply-To: <afkUeI7UhacZ5ZFm@nathan>
References: <afkUeI7UhacZ5ZFm@nathan>
On Tue, 5 May 2026 at 02:49, Nathan Bossart <[email protected]> wrote:
>
> I noticed that s_lock.h points to a default implementation of tas() in
> tas.s or s_lock.c, but AFAICT there hasn't been a tas() implementation in
> s_lock.c since commit 718aa43a4e, and commit 25f36066dd seems to have
> removed the last remaining tas.s files. So, I think this is dead code.
This indeed looks like a dead code. I also noticed `tas.s` is present
in meson.build, gitignore and src/backend/Makefile
should we remove that too?
> I also noticed that HAS_TEST_AND_SET just means that TAS is defined, so I
> wrote a 0002 that removes it in favor of checking TAS directly. I'd like
> to rewrite the comment at the top of the file, too, but haven't gotten to
> that yet. I find it a little misleading, especially because we #error if
> TAS isn't defined.
>
> --
> nathan
--
Best regards,
Kirill Reshke
view thread (12+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: small cleanup for s_lock.h
In-Reply-To: <CALdSSPgchta97kNGkbPVXa88+d-=Z_pKsfHUx_2qT2R63N=_sw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox