From 79ec127b7f4ab6827836b679aa6ecf0474091b5a Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Thu, 18 Feb 2010 18:52:12 +0000 Subject: 2010-02-18 Benjamin Kosnik * doc/xml/manual/using.xml: Update. * doc/xml/manual/status_cxx1998.xml: Same. * doc/xml/manual/status_cxx200x.xml: Add link. * doc/html/*: Regenerate. * testsuite/17_intro/freestanding.cc: Add. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@156871 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/doc/html/manual/memory.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'libstdc++-v3/doc/html/manual/memory.html') diff --git a/libstdc++-v3/doc/html/manual/memory.html b/libstdc++-v3/doc/html/manual/memory.html index f2e18f112ac..18db2d502bf 100644 --- a/libstdc++-v3/doc/html/manual/memory.html +++ b/libstdc++-v3/doc/html/manual/memory.html @@ -52,7 +52,7 @@ aid to locality if an implementation so desires. [20.4.1.1]/6

- Complete details cam be found in the C++ standard, look in + Complete details can be found in the C++ standard, look in [20.4 Memory].

Design Issues

The easiest way of fulfilling the requirements is to call @@ -93,9 +93,9 @@ or loading and unloading shared objects in memory. As such, using caching allocators on systems that do not support abi::__cxa_atexit is not recommended. -

Implementation

Interface Design

+

Implementation

Interface Design

The only allocator interface that - is support is the standard C++ interface. As such, all STL + is supported is the standard C++ interface. As such, all STL containers have been adjusted, and all external allocators have been modified to support this change.

@@ -106,7 +106,7 @@

The base class that allocator is derived from may not be user-configurable. -

Selecting Default Allocation Policy

+

Selecting Default Allocation Policy

It's difficult to pick an allocation strategy that will provide maximum utility, without excessively penalizing some behavior. In fact, it's difficult just deciding which typical actions to measure @@ -127,7 +127,7 @@ Insertion and erasure in a multi-threaded environment.

This test shows the ability of the allocator to reclaim memory - on a pre-thread basis, as well as measuring thread contention + on a per-thread basis, as well as measuring thread contention for memory resources. Test source here. @@ -143,7 +143,7 @@ The current default choice for allocator is __gnu_cxx::new_allocator. -

Disabling Memory Caching

+

Disabling Memory Caching

In use, allocator may allocate and deallocate using implementation-specified strategies and heuristics. Because of this, every call to an allocator object's @@ -285,8 +285,8 @@

The thr boolean determines whether the pool should be manipulated atomically or not. When thr = true, the allocator - is is thread-safe, while thr = - false, and is slightly faster but unsafe for + is thread-safe, while thr = + false, is slightly faster but unsafe for multiple threads.

For thread-enabled configurations, the pool is locked with a @@ -308,11 +308,11 @@ A high-performance allocator that uses a bit-map to keep track of the used and unused memory locations. It has its own documentation, found here. -

Bibliography

+

Bibliography

ISO/IEC 14882:1998 Programming languages - C++ . isoc++_1998 - 20.4 Memory.

The Standard Librarian: What Are Allocators Good + 20.4 Memory.

The Standard Librarian: What Are Allocators Good . austernm Matt Austern. @@ -320,27 +320,27 @@ . - .

The Hoard Memory Allocator. + .

The Hoard Memory Allocator. emeryb Emery Berger. - .

Reconsidering Custom Memory Allocation. + .

Reconsidering Custom Memory Allocation. bergerzorn Emery Berger. Ben Zorn. Kathryn McKinley. Copyright © 2002 OOPSLA. - .

Allocator Types. + .

Allocator Types. kreftlanger Klaus Kreft. Angelika Langer. C/C++ Users Journal . - .

The C++ Programming Language. + .

The C++ Programming Language. tcpl Bjarne Stroustrup. Copyright © 2000 . 19.4 Allocators. Addison Wesley - .

Yalloc: A Recycling C++ Allocator. + .

Yalloc: A Recycling C++ Allocator. yenf Felix Yen. Copyright © .

-- cgit v1.2.3