You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2011/01/14 15:47:14 UTC

DO NOT REPLY [Bug 50586] New: atomics fail on (SMP) PPC machines

https://issues.apache.org/bugzilla/show_bug.cgi?id=50586

           Summary: atomics fail on (SMP) PPC machines
           Product: APR
           Version: HEAD
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: thomas.koeckerbauer@dynatrace.com


Created an attachment (id=26489)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26489)
(SMP) PPC atomics patch

The current PPC atomics code does not work reliable for SMP machines - our
locks implemented using apr_atomic_cas32 and apr_atomic_set32 did fail on those
machines.

There are additional sync instructions necessary since the write order of the
store instructions is not guaranteed on PowerPC.

The same applies when the gcc-builtin atomics are used on PPC: For atomic set
and get there are additional sync instructions necessary, since the write order
is not guaranteed volatile is not enough.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org