diff options
author | csilvers <csilvers@6b5cf1ce-ec42-a296-1ba9-69fdba395a50> | 2007-03-22 04:44:18 +0000 |
---|---|---|
committer | csilvers <csilvers@6b5cf1ce-ec42-a296-1ba9-69fdba395a50> | 2007-03-22 04:44:18 +0000 |
commit | ee5805f1296f8546c16f90d5427efa347a5f7338 (patch) | |
tree | 38870545181491e1e98bd7cd901d8d276d1bc223 /src/pagemap.h | |
parent | bc455d7b63949fab94ed9518d277866e95f08768 (diff) | |
download | gperftools-ee5805f1296f8546c16f90d5427efa347a5f7338.tar.gz |
Wed Oct 26 15:19:16 2005 Google Inc. <opensource@google.com>
* Decrease fragmentation in tcmalloc (lefevere)
* Support for ARM in some of the thread-specific code (markus)
* Turn off heap-checker for statically-linked binaries, which
cause error leak reports now (etune)
* Many pprof improvements, including a command-line interface (jeff)
* CPU profiling now automatically affects all threads in linux 2.6.
(Kernel bugs break CPU profiling and threads in linux 2.4 a bit.)
ProfilerEnable() and ProfilerDisable() are deprecated. (sanjay)
* tcmalloc now correctly intercepts memalign (m3b, maxim)
* Syntax fix: added missing va_end()s. Helps non-gcc compiling (etune)
* Fixed a few coredumper bugs: race condition after PTRACE_DETACH,
ignore non-aligned stackframe pointers (markus, menage)
* 64-bit cleanup, especially for spinlock code (etune) and mmap (sanjay)
* Better support for finding threads in linux (markus)
* tcmalloc now tracks those stack traces that allocate memory (sanjay)
* Work around a weird setspecific problem (sanjay)
* Fix tcmalloc overflow problems when an alloc is close to 2G/4G (sanjay)
git-svn-id: http://gperftools.googlecode.com/svn/trunk@15 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
Diffstat (limited to 'src/pagemap.h')
-rw-r--r-- | src/pagemap.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pagemap.h b/src/pagemap.h index 50ff1bf..1fdde99 100644 --- a/src/pagemap.h +++ b/src/pagemap.h @@ -76,6 +76,8 @@ class TCMalloc_PageMap1 { return true; } + void PreallocateMoreMemory() {} + // REQUIRES "k" is in range "[0,2^BITS-1]". // REQUIRES "k" has been ensured before. // @@ -152,6 +154,11 @@ class TCMalloc_PageMap2 { } return true; } + + void PreallocateMoreMemory() { + // Allocate enough to keep track of all possible pages + Ensure(0, 1 << BITS); + } }; // Three-level radix tree @@ -236,6 +243,9 @@ class TCMalloc_PageMap3 { } return true; } + + void PreallocateMoreMemory() { + } }; #endif // TCMALLOC_PAGEMAP_H__ |