aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alkondratenko@gmail.com>2024-06-21 15:52:57 -0400
committerAliaksey Kandratsenka <alkondratenko@gmail.com>2024-06-21 15:52:57 -0400
commit285908e8c7cfa98659127a23532c060f8dcbd148 (patch)
tree8ca35c51849aef318db6f8defb6195b053374266
parent469da8dac6c22cd4e2492a56babf09a895c60f27 (diff)
downloadgoogle-perftools-285908e8c7cfa98659127a23532c060f8dcbd148.tar.gz
google-perftools-285908e8c7cfa98659127a23532c060f8dcbd148.zip
actualize TCMallocGuard comment
It was incorrectly refering to long gone behavior of updating environment variables to tell (ancient versions of) libstdc++ to use new/delete.
-rw-r--r--src/tcmalloc.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/tcmalloc.cc b/src/tcmalloc.cc
index 60f5e9b..819d5a9 100644
--- a/src/tcmalloc.cc
+++ b/src/tcmalloc.cc
@@ -1169,14 +1169,9 @@ size_t TCMallocImplementation::GetEstimatedAllocatedSize(size_t size) {
// The constructor allocates an object to ensure that initialization
// runs before main(), and therefore we do not have a chance to become
// multi-threaded before initialization. We also create the TSD key
-// here. Presumably by the time this constructor runs, glibc is in
+// here. Presumably by the time this constructor runs, runtime is in
// good enough shape to handle tcmalloc::CreateTlsKey().
//
-// The constructor also takes the opportunity to tell STL to use
-// tcmalloc. We want to do this early, before construct time, so
-// all user STL allocations go through tcmalloc (which works really
-// well for STL).
-//
// The destructor prints stats when the program exits.
static int tcmallocguard_refcount;
TCMallocGuard::TCMallocGuard() {