diff options
author | ljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-31 02:45:04 +0000 |
---|---|---|
committer | ljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-31 02:45:04 +0000 |
commit | ab51bd9094994e05f641597099c103f3b0edeb69 (patch) | |
tree | 126aefb8df025937b18f4a001d9394c23a071104 /libstdc++-v3/include | |
parent | 28833db5b09cb3099e715f0169808d21e6fdf427 (diff) | |
download | gcc-ab51bd9094994e05f641597099c103f3b0edeb69.tar.gz |
* include/bits/c++config (__USE_MALLOC): Do not define it.
Document why not and give pointers to more information.
* docs/html/23_containers/howto.html: Update documentation
to reflect recent understanding of problem.
* docs/html/17_intro/howto.html: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42732 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r-- | libstdc++-v3/include/bits/c++config | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libstdc++-v3/include/bits/c++config b/libstdc++-v3/include/bits/c++config index f87f58e03fd..d3d99baa926 100644 --- a/libstdc++-v3/include/bits/c++config +++ b/libstdc++-v3/include/bits/c++config @@ -101,9 +101,14 @@ # define __STL_UNWIND(action) #endif -// This is the "underlying allocator" for STL. The alternatives are -// homegrown schemes involving a kind of mutex and free list; see stl_alloc.h. -#define __USE_MALLOC +// Default to the typically high-speed, pool-based allocator (as +// libstdc++-v2) instead of the malloc-based allocator (libstdc++-v3 +// snapshots). See libstdc++-v3/docs/html/17_intro/howto.html for +// details on why you don't want to override this setting. Ensure +// that threads are properly configured on your platform before +// assigning blame to the STL container-memory allocator. After doing +// so, please report any possible issues to libstdc++@gcc.gnu.org . +// Do not blindly #define __USE_MALLOC here or on the command line. // The remainder of the prewritten config is mostly automatic; all the // user hooks are listed above. |