NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PR/49816 CVS commit: src/libexec/ld.elf_so
> I don't think that's relevant, this is about global visiblity of
> changes. E.g. if another thread tries to get the mutex, it must see all
> changes from the current thread when successfully acquired the mutex.
>
> Joerg
I can't follow... Your first message was:
> None of those should matter on amd64? CAS has an implicit total memory
> barrier, so this seems to just add a lot of overhead for no reason.
If you're talking about atomic vs. memory barrier, isn't it something
addressed by the new C11 atomic API? Kernel mutex code has
MUTEX_RECEIVE()/MUTEX_GIVE() for that purpose (IIUC).
Home |
Main Index |
Thread Index |
Old Index