36cfbee133
* local_atomic: New file. * libitm_i.h: Include it. (gtm_thread::shared_state): Use atomic template. * beginend.cc (GTM::gtm_clock): Use atomic template. (global_tid): Use atomic template if 64-bit atomics available. (gtm_thread::gtm_thread): Update shared_state access. (gtm_thread::trycommit): Likewise. (choose_code_path): Update global_tid access. * method-gl.cc (gl_mg::orec): Use atomic template. Update all users. * stmlock.h (GTM::gtm_clock): Use atomic template. (gtm_get_clock, gtm_inc_clock): Update accesses. * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove redundant __sync_synchronize after atomic shared_state access. * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise. (gtm_rwlock::write_lock_generic): Likewise. (gtm_rwlock::read_unlock): Likewise. * config/alpha/target.h (atomic_read_barrier): Remove. (atomic_write_barrier): Remove. * config/x86/target.h (atomic_read_barrier): Remove. (atomic_write_barrier): Remove. From-SVN: r182294 |
||
---|---|---|
.. | ||
config | ||
testsuite | ||
aatree.cc | ||
aatree.h | ||
acinclude.m4 | ||
aclocal.m4 | ||
alloc_c.cc | ||
alloc_cpp.cc | ||
alloc.cc | ||
barrier.cc | ||
beginend.cc | ||
ChangeLog | ||
clone.cc | ||
common.h | ||
config.h.in | ||
configure | ||
configure.ac | ||
configure.tgt | ||
containers.h | ||
dispatch.h | ||
eh_cpp.cc | ||
libitm_i.h | ||
libitm.h | ||
libitm.map | ||
libitm.spec.in | ||
libitm.texi | ||
local_atomic | ||
local_type_traits | ||
local.cc | ||
Makefile.am | ||
Makefile.in | ||
method-gl.cc | ||
method-serial.cc | ||
query.cc | ||
retry.cc | ||
stmlock.h | ||
useraction.cc | ||
util.cc |