You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2006/10/19 16:51:07 UTC
svn commit: r465646 - /incubator/stdcxx/trunk/tests/src/alloc.cpp
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 <fa...@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;