This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Target maintainers]: Please update libjava/sysdep/*/locks.h with new atomic builtins


On Fri, Jun 15, 2012 at 3:32 AM, Andreas Krebbel
<krebbel@linux.vnet.ibm.com> wrote:

> If all targets have been migrated the files probably could be merged?!

Yes, it looks like most targets could use a generic implementation,
but the generic implementation should be based on the __atomic
intrinsics, not the __sync intrinsics, because the latter always uses
strict memory model semantics although the locks allow weaker
semantics.

- David


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