summaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-04 08:00:35 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-04 08:00:35 +0000
commit95c1a2c58c557300c0d31c8cb550e511a76e3ec0 (patch)
tree7e25f889637119f0f85bbd823d52791750120172 /libstdc++-v3/src
parent8066a0274a0222dfa700a088a5745ae404b349f7 (diff)
downloadgcc-95c1a2c58c557300c0d31c8cb550e511a76e3ec0.tar.gz
2006-09-04 Paolo Carlini <pcarlini@suse.de>
* src/mt_allocator.cc (__pool<true>::_M_reclaim_block): Do not name a variable __used, badname on BSD. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116678 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/mt_allocator.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/src/mt_allocator.cc b/libstdc++-v3/src/mt_allocator.cc
index f0b98bdd019..6b5403dc652 100644
--- a/libstdc++-v3/src/mt_allocator.cc
+++ b/libstdc++-v3/src/mt_allocator.cc
@@ -275,7 +275,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
_Atomic_word* const __reclaimed_base =
reinterpret_cast<_Atomic_word*>(__bin._M_used + __max_threads);
const _Atomic_word __reclaimed = __reclaimed_base[__thread_id];
- const size_t __used = __bin._M_used[__thread_id] - __reclaimed;
+ const size_t __net_used = __bin._M_used[__thread_id] - __reclaimed;
// NB: For performance sake we don't resync every time, in order
// to spare atomic ops. Note that if __reclaimed increased by,
@@ -289,8 +289,8 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
__atomic_add(&__reclaimed_base[__thread_id], -__reclaimed);
}
- if (__remove >= __used)
- __remove -= __used;
+ if (__remove >= __net_used)
+ __remove -= __net_used;
else
__remove = 0;
if (__remove > __limit && __remove > __bin._M_free[__thread_id])