svn commit: r341682 - head/sys/sys

Warner Losh imp at bsdimp.com
Sun Dec 9 03:43:26 UTC 2018


On Sat, Dec 8, 2018, 8:36 PM Kevin Bowling <kevin.bowling at kev009.com wrote:

> On Sat, Dec 8, 2018 at 12:09 AM Mateusz Guzik <mjguzik at gmail.com> wrote:
>
> >
> > Fully satisfying solution would be that all architectures get 64-bit
> > ops, even if in the worst case they end up taking a lock. Then
> > subsystems would not have to ifdef on anything. However, there
> > was some opposition to this proposal and I don't think this is
> > important enough to push.
>
> Mateusz,
>
> Who is opposing this particular polyfill solution?  Scott Long brought
> up a situation in driver development where this would be useful as
> well.  The polyfills lower the cognitive load and #ifdef soup which
> are the right call here regardless of performance on toy ports.
>

I don't recall seeing the opposition either. It would have to be a global
lock for all 64bit atomics.... but I think it would only be 2 atomics on
those architectures.

Warner

>


More information about the svn-src-head mailing list