Author: faridz
Date: Thu Oct 19 07:51:02 2006
New Revision: 465646

URL: http://svn.apache.org/viewvc?view=rev&rev=465646
Log:
2006-10-19 Farid Zaripov <[EMAIL PROTECTED]>

        * alloc.cpp (_rw_allocate_blocks): Set r/w access to the
        _rw_tail->next before modification

Modified:
    incubator/stdcxx/trunk/tests/src/alloc.cpp

Modified: incubator/stdcxx/trunk/tests/src/alloc.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/alloc.cpp?view=diff&rev=465646&r1=465645&r2=465646
==============================================================================
--- incubator/stdcxx/trunk/tests/src/alloc.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/alloc.cpp Thu Oct 19 07:51:02 2006
@@ -422,8 +422,10 @@
 
         if (0 == _rw_head)
             _rw_head = blocks;
-        else
+        else {
+            MemRWGuard guard (&_rw_tail->next_, sizeof (_rw_tail->next_));
             _rw_tail->next_ = blocks;
+        }
 
         _rw_tail = blocks;
 


Reply via email to