From 285908e8c7cfa98659127a23532c060f8dcbd148 Mon Sep 17 00:00:00 2001 From: Aliaksey Kandratsenka Date: Fri, 21 Jun 2024 15:52:57 -0400 Subject: [PATCH] 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. --- src/tcmalloc.cc | 7 +------ 1 file changed, 1 insertion(+), 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() {