summaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-30 18:22:01 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-30 18:22:01 +0000
commitf449817f78a4cd87079ac3ff2bc7e91074194f03 (patch)
treee338e85f8bbecaefe0b126f7accc8751422321f6 /libstdc++-v3/src
parent3d1c55e6e531abcc62a91c3f50e1fc7acbb28044 (diff)
downloadgcc-f449817f78a4cd87079ac3ff2bc7e91074194f03.tar.gz
2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/pool_allocator.h: Rename __pool_base to __pool_alloc_base. * src/allocator.cc: Same. * config/linker-map.gnu: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86789 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/allocator.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/libstdc++-v3/src/allocator.cc b/libstdc++-v3/src/allocator.cc
index e35aa3eef16..a0bf0ee65a7 100644
--- a/libstdc++-v3/src/allocator.cc
+++ b/libstdc++-v3/src/allocator.cc
@@ -44,22 +44,22 @@ namespace __gnu_internal
namespace __gnu_cxx
{
// Definitions for __pool_alloc_base.
- __pool_base::_Obj* volatile*
- __pool_base::_M_get_free_list(size_t __bytes)
+ __pool_alloc_base::_Obj* volatile*
+ __pool_alloc_base::_M_get_free_list(size_t __bytes)
{
size_t __i = ((__bytes + (size_t)_S_align - 1) / (size_t)_S_align - 1);
return _S_free_list + __i;
}
mutex_type&
- __pool_base::_M_get_mutex()
+ __pool_alloc_base::_M_get_mutex()
{ return __gnu_internal::palloc_init_mutex; }
// Allocate memory in large chunks in order to avoid fragmenting the
// heap too much. Assume that __n is properly aligned. We hold the
// allocation lock.
char*
- __pool_base::_M_allocate_chunk(size_t __n, int& __nobjs)
+ __pool_alloc_base::_M_allocate_chunk(size_t __n, int& __nobjs)
{
char* __result;
size_t __total_bytes = __n * __nobjs;
@@ -128,7 +128,7 @@ namespace __gnu_cxx
// __n"'s free list. We assume that __n is properly aligned. We
// hold the allocation lock.
void*
- __pool_base::_M_refill(size_t __n)
+ __pool_alloc_base::_M_refill(size_t __n)
{
int __nobjs = 20;
char* __chunk = _M_allocate_chunk(__n, __nobjs);
@@ -159,11 +159,11 @@ namespace __gnu_cxx
return __result;
}
- __pool_base::_Obj* volatile __pool_base::_S_free_list[_S_free_list_size];
+ __pool_alloc_base::_Obj* volatile __pool_alloc_base::_S_free_list[_S_free_list_size];
- char* __pool_base::_S_start_free = 0;
+ char* __pool_alloc_base::_S_start_free = 0;
- char* __pool_base::_S_end_free = 0;
+ char* __pool_alloc_base::_S_end_free = 0;
- size_t __pool_base::_S_heap_size = 0;
+ size_t __pool_alloc_base::_S_heap_size = 0;
} // namespace __gnu_cxx