HomeFreeBSD

- Fix memory barriers in atomic operations so that the barriers are always
rS75565Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

  • Fix memory barriers in atomic operations so that the barriers are always "inside" of locked regions. That is, an acquire atomic operation will always enforce a memory barrier after the atomic operation and a release operation will always enforce a memory barrier before the atomic operation.
  • Explicitly use 'mb' instead of 'wmb' in release atomic operations. The 'wmb' memory barrier is not strong enough to guarantee coherence with other processors. This is effectively a nop since alpha_wmb() actually performs a 'mb' and not a 'wmb', but I wanted the code to be more correct since at some point in the future alpha_wmb()'s implementation may switch to being a real 'wmb'.

Details

Provenance
jhbAuthored on
Parents
rS75564: MFC 1.74: globbing limits for ftpd
Branches
Unknown
Tags
Unknown

Event Timeline