[PATCH 1/5] std::latch: reduce internal implementation from ptrdiff_t to int
Thiago Macieira
thiago.macieira@intel.com
Fri Feb 26 19:08:50 GMT 2021
On Friday, 26 February 2021 10:14:42 PST Andreas Schwab wrote:
> On Feb 26 2021, Thiago Macieira via Gcc-patches wrote:
> > @@ -85,7 +85,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
> > }
> >
> > private:
> > - alignas(__alignof__(ptrdiff_t)) ptrdiff_t _M_a;
> > + alignas(__alignof__(int)) int _M_a;
>
> Futexes must be aligned to 4 bytes.
Agreed, but doesn't this accomplish that?
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel DPG Cloud Engineering
More information about the Libstdc++
mailing list