From 7dd049e3367acff457a20cc4fb4c8b366cb2892d Mon Sep 17 00:00:00 2001 From: Jaya Date: Sat, 22 Feb 2025 13:46:21 -0500 Subject: [PATCH] patch broken dependencies --- tcmalloc/BUILD | 1 + tcmalloc/deallocation_profiler.cc | 1 + tcmalloc/deallocation_profiler.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tcmalloc/BUILD b/tcmalloc/BUILD index cb2d0245e..423d58f26 100644 --- a/tcmalloc/BUILD +++ b/tcmalloc/BUILD @@ -318,6 +318,7 @@ create_tcmalloc_libraries( "//tcmalloc/selsan", "@com_google_absl//absl/algorithm:container", "@com_google_absl//absl/base", + "@com_google_absl//absl/base:malloc_internal", "@com_google_absl//absl/base:core_headers", "@com_google_absl//absl/base:dynamic_annotations", "@com_google_absl//absl/base:nullability", diff --git a/tcmalloc/deallocation_profiler.cc b/tcmalloc/deallocation_profiler.cc index 60539c471..4388d39a8 100644 --- a/tcmalloc/deallocation_profiler.cc +++ b/tcmalloc/deallocation_profiler.cc @@ -716,6 +716,7 @@ void DeallocationProfiler::DeallocationStackTraceTable::Iterate( DeallocationSample::DeallocationSample(DeallocationProfilerList* list) { profiler_ = std::make_unique(list); } +DeallocationSample::~DeallocationSample() = default; tcmalloc::Profile DeallocationSample::Stop() && { if (profiler_ != nullptr) { diff --git a/tcmalloc/deallocation_profiler.h b/tcmalloc/deallocation_profiler.h index 9b711c581..afa905405 100644 --- a/tcmalloc/deallocation_profiler.h +++ b/tcmalloc/deallocation_profiler.h @@ -50,7 +50,7 @@ class DeallocationSample final public: explicit DeallocationSample(DeallocationProfilerList* list); // We define the dtor to ensure it is placed in the desired text section. - ~DeallocationSample() override = default; + ~DeallocationSample(); tcmalloc::Profile Stop() && override;