Jakub Jelinek
|
85ec4feb11
|
Update copyright years.
From-SVN: r256169
|
2018-01-03 11:03:58 +01:00 |
|
Jakub Jelinek
|
cbe34bb5ed
|
Update copyright years.
From-SVN: r243994
|
2017-01-01 13:07:43 +01:00 |
|
Torvald Riegel
|
d2653984bf
|
libitm: Ensure proxy privatization safety.
* method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
safety.
* method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
* libitm/testsuite/libitm.c/priv-1.c: New.
From-SVN: r232469
|
2016-01-16 22:08:41 +00:00 |
|
Torvald Riegel
|
629e47295b
|
libitm: Fix privatization safety interaction with serial mode.
From-SVN: r232322
|
2016-01-13 12:40:34 +00:00 |
|
Jakub Jelinek
|
818ab71a41
|
Update copyright years.
From-SVN: r232055
|
2016-01-04 15:30:50 +01:00 |
|
Jakub Jelinek
|
5624e564d2
|
Update copyright years.
From-SVN: r219188
|
2015-01-05 13:33:28 +01:00 |
|
Richard Sandiford
|
f93608e6d4
|
Update copyright years in libitm/
From-SVN: r206298
|
2014-01-02 22:26:00 +00:00 |
|
Richard Sandiford
|
75f9527c9b
|
Update copyright in libitm.
From-SVN: r195697
|
2013-02-03 17:46:11 +00:00 |
|
Torvald Riegel
|
b679c81340
|
Ask dispatch whether it requires serial mode.
* retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
it requires serial mode instead of assuming that for certain
dispatchs.
* dispatch.h (abi_dispatch::requires_serial): New.
(abi_dispatch::abi_dispatch): Adapt.
* method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
* method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
* method-serial.cc (serialirr_dispatch::serialirr_dispatch,
serial_dispatch::serial_dispatch,
serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
From-SVN: r192777
|
2012-10-24 19:52:02 +00:00 |
|
Torvald Riegel
|
63b08143d6
|
libitm: Put gl_wt global lock on separate cache line.
libitm/
* method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
From-SVN: r184403
|
2012-02-20 20:57:37 +00:00 |
|
Torvald Riegel
|
4c9bd6acb0
|
libitm: Optimize synchronization in gl_wt rollback.
libitm/
* method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
From-SVN: r184402
|
2012-02-20 20:57:23 +00:00 |
|
Torvald Riegel
|
651ff4152e
|
libitm: Remove obsolete handling of prior serial lock corner cases in gl_wt.
libitm/
* method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
serial mode corner cases made obsolete by prior gtm_rwlock changes.
(gl_wt_dispatch.rollback): Same.
From-SVN: r184401
|
2012-02-20 20:57:09 +00:00 |
|
Torvald Riegel
|
efee0113e8
|
libitm: Optimize memory order requiremens in gl_wt pre_write.
libtim/
* method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
From-SVN: r184400
|
2012-02-20 20:56:56 +00:00 |
|
Torvald Riegel
|
33a03827d2
|
libitm: Add missing undo-logging of RfW src regions in gl_wt memtransfer.
libitm/
* method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
for RfW src. Optimize number of calls to gtm_thr.
From-SVN: r184399
|
2012-02-20 20:56:42 +00:00 |
|
Torvald Riegel
|
11f30bb0e4
|
libitm: Optimize undo log.
libitm/
* local.cc (GTM_LB): Use GTM::gtm_undolog.
(GTM::gtm_thread::drop_references_undolog): Remove.
(GTM::gtm_thread::commit_undolog,
GTM::gtm_thread::rollback_undolog): Move to ...
* libitm_i.h (GTM::gtm_undolog): ...here. New.
(GTM::gtm_undolog_entry): Remove.
(GTM::gtm_thread): Adapt.
* beginend.cc (GTM::gtm_thread::rollback): Adapt.
(GTM::gtm_thread::trycommit): Adapt.
* method-serial.cc (serial_dispatch::log): Adapt.
* method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
(gl_wt_dispatch::store): Fix likely/unlikely.
* containers.h (GTM::vector::resize): Add additional_capacity
parameter and handle it.
(GTM::vector::resize_noinline): New/adapt.
(GTM::vector::push): New.
From-SVN: r182992
|
2012-01-08 14:13:49 +00:00 |
|
Torvald Riegel
|
799142bf74
|
libitm: Fixed conversion to C++11 atomics.
libitm/
* beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
(GTM::gtm_thread::try_commit): Changed memory order.
* config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
as parameter.
* config/linux/x86/futex_bits.h (sys_futex0): Same.
* config/linux/sh/futex_bits.h (sys_futex0): Same.
* config/linux/futex_bits.h (sys_futex0): Same.
* config/linux/futex.cc (futex_wait, futex_wake): Same.
* config/linux/futex.h (futex_wait, futex_wake): Same.
* config/linux/rwlock.h (gtm_rwlock::writers,
gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
ints.
* config/linux/rwlock.cc (gtm_rwlock::read_lock,
gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
gtm_rwlock::write_unlock): Fix memory orders and fences.
* config/posix/rwlock.cc (gtm_rwlock::read_lock,
gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
gtm_rwlock::write_unlock): Same.
* config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
* method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
Add comments.
(gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
gl_wt_dispatch::load, gl_wt_dispatch::store,
gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
orders and fences. Add comments.
From-SVN: r182674
|
2011-12-24 01:42:20 +00:00 |
|
Richard Henderson
|
36cfbee133
|
libitm: Conversion to c++11 atomics.
* 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
|
2011-12-13 11:11:25 -08:00 |
|
Aldy Hernandez
|
0a35513e4e
|
Merge from transactional-memory branch.
From-SVN: r181154
|
2011-11-08 11:13:41 +00:00 |
|