This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "memory" clobber in synchronization primitives


On Tue, Sep 01, 1998 at 02:24:23PM +1000, Geoff Keating wrote:
> The actual compare_and_swap procedure has two
> 'sync' instructions surrounding the main code, which are 'asm
> volatile' and therefore memory barriers.

Um, asm_volatile is not a memory barrier.  An asm with an
explict memory clobber is.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]