libitm: Use ml_wt as default TM methods for >1 thread.
authorTorvald Riegel <triegel@redhat.com>
Fri, 24 Feb 2012 11:05:37 +0000 (11:05 +0000)
committerTorvald Riegel <torvald@gcc.gnu.org>
Fri, 24 Feb 2012 11:05:37 +0000 (11:05 +0000)
libitm/
* retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
default dispatch for more than 1 thread to ml_wt.

From-SVN: r184547

libitm/ChangeLog
libitm/retry.cc

index 2676cbef4b0392452f1c7c84bd4c9845e83fa2d3..3e9e159f978b169b13d43d7c91de27ed9f6be5e7 100644 (file)
@@ -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.
index 2c1483eae5a0cd4554787fcf3a05d7ff0a8a924e..660bf5244e3c606fbc5039a8ba072c460ab2e8d1 100644 (file)
@@ -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