diff options
author | Torvald Riegel <triegel@redhat.com> | 2012-02-24 11:05:37 +0000 |
---|---|---|
committer | Torvald Riegel <torvald@gcc.gnu.org> | 2012-02-24 11:05:37 +0000 |
commit | bc8da6ba25c77f0dc7da0fd37b10119a42a0d532 (patch) | |
tree | c03ab51a847d4cb40b407251213f08cb6156571b /libitm | |
parent | b8f4632ce8ad7ec372448610c3711762f8032cb9 (diff) | |
download | gcc-bc8da6ba25c77f0dc7da0fd37b10119a42a0d532.zip gcc-bc8da6ba25c77f0dc7da0fd37b10119a42a0d532.tar.gz gcc-bc8da6ba25c77f0dc7da0fd37b10119a42a0d532.tar.bz2 |
libitm: Use ml_wt as default TM methods for >1 thread.
libitm/
* retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
default dispatch for more than 1 thread to ml_wt.
From-SVN: r184547
Diffstat (limited to 'libitm')
-rw-r--r-- | libitm/ChangeLog | 5 | ||||
-rw-r--r-- | libitm/retry.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libitm/ChangeLog b/libitm/ChangeLog index 2676cbe..3e9e159 100644 --- a/libitm/ChangeLog +++ b/libitm/ChangeLog @@ -1,3 +1,8 @@ +2012-02-24 Torvald Riegel <triegel@redhat.com> + + * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change + default dispatch for more than 1 thread to ml_wt. + 2012-02-20 Torvald Riegel <triegel@redhat.com> * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline. diff --git a/libitm/retry.cc b/libitm/retry.cc index 2c1483e..660bf52 100644 --- a/libitm/retry.cc +++ b/libitm/retry.cc @@ -314,7 +314,7 @@ GTM::gtm_thread::number_of_threads_changed(unsigned previous, unsigned now) set_default_dispatch(default_dispatch_user); else { - abi_dispatch* a = dispatch_serialirr_onwrite(); + abi_dispatch* a = dispatch_ml_wt(); if (a->supports(now)) set_default_dispatch(a); else |