locking problem with mips atomicity

Richard Henderson rth@redhat.com
Thu Mar 18 16:25:00 GMT 2004


On Thu, Mar 18, 2004 at 11:04:19AM +0000, Richard Sandiford wrote:
> Sorry if I've missed the explanation, but why is using a memory clobber
> an improvement over an unused memory operand?

To make sure that any memory protected by the mutex is not
moved across the acquisition of the lock.


r~



More information about the Gcc mailing list