gperftools/src
Aliaksey Kandratsenka 771a01ed28 rework and simplify emergency malloc integration
We now wrap StackTraceScope thingy in tcmalloc-specific parts, instead
of automagically inside every stacktrace.cc function. TCMalloc bits
all need to grab stacktraces via newly introduced
tcmalloc::GrabBacktrace (which handles emergency malloc wrapping).

New approach eliminates the need for doing fake stacktrace scope. CPU
profiler, being distinct .so library couldn't take advantage of
emergency malloc anyways.

This simplifies the build further and eliminates another potential
point of runtime divergence when stacktrace is linked to both
libprofiler and libtcmalloc.
2024-02-05 14:27:02 -05:00
..
base drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
gperftools bump required c++ standard to c++-17 2024-01-30 15:54:24 -05:00
tests drop long deprecated google/ headers 2024-02-04 21:54:46 -05:00
windows drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
addressmap-inl.h liberate code base from legacy fixed size int types 2024-02-04 15:47:21 -05:00
central_freelist.cc move page heap locking under PageHeap 2023-07-24 21:01:35 -04:00
central_freelist.h align CentralFreeList on cache line size instead of just 64 2024-02-04 19:33:12 -05:00
check_address-inl.h Avoid initilizing CheckAddress with a lambda, so that it also works with gcc 6. 2023-10-19 14:35:19 -04:00
common.cc drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
common.h liberate code base from legacy fixed size int types 2024-02-04 15:47:21 -05:00
config_for_unittests.h try to avoid certain warnings in tests 2023-07-13 18:58:42 -04:00
debugallocation.cc rework and simplify emergency malloc integration 2024-02-05 14:27:02 -05:00
emergency_malloc.cc rework and simplify emergency malloc integration 2024-02-05 14:27:02 -05:00
emergency_malloc.h rework and simplify emergency malloc integration 2024-02-05 14:27:02 -05:00
gen_getpc.rb perform ucontext->pc variants testing in compile-time 2023-12-02 18:58:45 -05:00
getenv_safe.h delete-trailing-whitespace on all files 2021-02-14 16:13:15 -08:00
getpc-inl.h perform ucontext->pc variants testing in compile-time 2023-12-02 18:58:45 -05:00
getpc.h Several build fixes and cleanups 2024-01-26 16:56:17 -05:00
heap-checker-bcad.cc ensure that heap checker initialization actually calls malloc 2023-07-02 22:30:00 -04:00
heap-checker.cc drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
heap-profile-stats.h bump heap profiler stats fields to 64 bit 2023-07-03 12:47:35 -04:00
heap-profile-table.cc avoid unused variable warning for bucket_count 2024-02-04 13:23:16 -05:00
heap-profile-table.h use generic writer when producing heap profiles 2024-01-24 17:31:35 -05:00
heap-profiler.cc drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
internal_logging.cc drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
internal_logging.h dont test HAVE_{STDINT,INTTYPES}_H 2023-07-22 14:32:40 -04:00
libc_override.h
libc_override_aix.h Add mallinfo2 function 2023-12-07 14:10:51 +01:00
libc_override_gcc_and_weak.h bump required c++ standard to c++-17 2024-01-30 15:54:24 -05:00
libc_override_glibc.h
libc_override_osx.h Revert "[osx] implement native c++ allocation operators on osx" 2023-12-31 21:33:30 -05:00
libc_override_redefine.h bump required c++ standard to c++-17 2024-01-30 15:54:24 -05:00
linked_list.h
malloc_extension.cc liberate code base from legacy fixed size int types 2024-02-04 15:47:21 -05:00
malloc_hook-inl.h drop old mmap hooks and introduce internal & simpler mmap_hook.h 2023-07-21 16:13:19 -04:00
malloc_hook.cc rework and simplify emergency malloc integration 2024-02-05 14:27:02 -05:00
maybe_emergency_malloc.h rework and simplify emergency malloc integration 2024-02-05 14:27:02 -05:00
memfs_malloc.cc liberate code base from legacy fixed size int types 2024-02-04 15:47:21 -05:00
memory_region_map.cc drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
memory_region_map.h liberate code base from legacy fixed size int types 2024-02-04 15:47:21 -05:00
mmap_hook.cc drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
mmap_hook.h drop old mmap hooks and introduce internal & simpler mmap_hook.h 2023-07-21 16:13:19 -04:00
packed-cache-inl.h liberate code base from legacy fixed size int types 2024-02-04 15:47:21 -05:00
page_heap.cc rework and simplify emergency malloc integration 2024-02-05 14:27:02 -05:00
page_heap.h rework and simplify emergency malloc integration 2024-02-05 14:27:02 -05:00
page_heap_allocator.h drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
pagemap.h turn inline ATTRIBUTE_ALWAYS_INLINE -> ALWAYS_INLINE 2024-02-04 14:53:52 -05:00
pprof
profile-handler.cc liberate code base from legacy fixed size int types 2024-02-04 15:47:21 -05:00
profile-handler.h liberate code base from legacy fixed size int types 2024-02-04 15:47:21 -05:00
profiledata.cc extract proc-maps iteration into own file and cover it by tests 2024-01-29 21:02:17 -05:00
profiledata.h
profiler.cc fix: cmake config.h defines declaration 2023-09-08 14:38:21 -04:00
raw_printer.cc drop perftools_vsnprintf wrapper 2024-01-30 17:18:12 -05:00
raw_printer.h delete-trailing-whitespace on all files 2021-02-14 16:13:15 -08:00
safe_strerror.cc implement SafeStrError and use it inside strerror 2023-07-03 18:14:05 -04:00
safe_strerror.h implement SafeStrError and use it inside strerror 2023-07-03 18:14:05 -04:00
sampler.cc delete-trailing-whitespace on all files 2021-02-14 16:13:15 -08:00
sampler.h dont test HAVE_{STDINT,INTTYPES}_H 2023-07-22 14:32:40 -04:00
span.cc drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
span.h drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
stack_trace_table.cc
stack_trace_table.h dont test HAVE_{STDINT,INTTYPES}_H 2023-07-22 14:32:40 -04:00
stacktrace.cc rework and simplify emergency malloc integration 2024-02-05 14:27:02 -05:00
stacktrace_arm-inl.h
stacktrace_generic-inl.h
stacktrace_generic_fp-inl.h perform ucontext->pc variants testing in compile-time 2023-12-02 18:58:45 -05:00
stacktrace_impl_setup-inl.h refactor stacktrace.cc and drop x86 backtracer 2023-07-02 22:30:00 -04:00
stacktrace_instrument-inl.h
stacktrace_libgcc-inl.h
stacktrace_libunwind-inl.h avoid unused variable warning in stacktrace_libunwind 2023-10-27 19:00:17 -04:00
stacktrace_powerpc-darwin-inl.h initial batch of changes to enable AIX in 32-bit and 64-bit 2023-07-09 16:52:20 -04:00
stacktrace_powerpc-inl.h Minor fix-ups for PowerPC defines 2023-11-25 15:58:24 +08:00
stacktrace_powerpc-linux-inl.h fix: cmake config.h defines declaration 2023-09-08 14:38:21 -04:00
stacktrace_win32-inl.h remove obsolete references to code.google.com 2023-07-31 14:28:58 -04:00
static_vars.cc align CentralFreeList on cache line size instead of just 64 2024-02-04 19:33:12 -05:00
static_vars.h drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
symbolize.cc avoid -Wunused-results warnings from read/write 2024-01-30 17:08:29 -05:00
symbolize.h dont test HAVE_{STDINT,INTTYPES}_H 2023-07-22 14:32:40 -04:00
system-alloc.cc drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
system-alloc.h delete-trailing-whitespace on all files 2021-02-14 16:13:15 -08:00
tcmalloc.cc rework and simplify emergency malloc integration 2024-02-05 14:27:02 -05:00
tcmalloc_guard.h
tcmalloc_internal.h A number of cleanups 2024-01-29 17:15:53 -08:00
thread_cache.cc drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
thread_cache.h liberate code base from legacy fixed size int types 2024-02-04 15:47:21 -05:00
thread_cache_ptr.cc drop LINKER_INITIALIZED in favor of constexpr constructors 2024-02-04 19:18:33 -05:00
thread_cache_ptr.h split and rewrite TLS access for thread caches 2024-02-03 15:57:14 -05:00