stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lnico...@apache.org
Subject svn commit: r1388733 - /stdcxx/branches/4.2.x/tests/support/atomic_xchg.cpp
Date Sat, 22 Sep 2012 03:19:01 GMT
Author: lnicoara
Date: Sat Sep 22 03:19:00 2012
New Revision: 1388733

URL: http://svn.apache.org/viewvc?rev=1388733&view=rev
Log:
2012-09-21  Liviu Nicoara  <nikkoara@hates.ms>

    * tests/support/atomic_xchg.cpp: (run_test) qualified counter
      volatile to avoid SUNPro optimization 


Modified:
    stdcxx/branches/4.2.x/tests/support/atomic_xchg.cpp

Modified: stdcxx/branches/4.2.x/tests/support/atomic_xchg.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/support/atomic_xchg.cpp?rev=1388733&r1=1388732&r2=1388733&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/support/atomic_xchg.cpp (original)
+++ stdcxx/branches/4.2.x/tests/support/atomic_xchg.cpp Sat Sep 22 03:19:00 2012
@@ -297,7 +297,7 @@ void run_test (intT, thr_args_base::tag_
     // compute the expected result, "skipping" zeros by incrementing
     // expect twice when it overflows and wraps around to 0 (zero is
     // used as the lock variable in thread_routine() above)
-    intT expect = intT (1);
+    intT volatile expect = intT (1);
 
     const unsigned long nincr = (Args::nthreads_ * Args::nincr_) / 2U;
         



Mime
View raw message