stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r465646 - /incubator/stdcxx/trunk/tests/src/alloc.cpp
Date Thu, 19 Oct 2006 14:51:07 GMT
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 <faridz@kyiv.vdiweb.com>

	* 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;
 



Mime
View raw message