apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50586] New: atomics fail on (SMP) PPC machines
Date Fri, 14 Jan 2011 14:47:14 GMT
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


Mime
View raw message