Skip to content

Commit

Permalink
Merge pull request #274 from jayakasadev:broken_deps
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 733160339
Change-Id: I06a30a25d5a79ced3646698a22807e6d3857e08a
  • Loading branch information
copybara-github committed Mar 4, 2025
2 parents 6dec8dc + 7dd049e commit e38cc66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions tcmalloc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ create_tcmalloc_libraries(
"@com_google_absl//absl/base",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/base:dynamic_annotations",
"@com_google_absl//absl/base:malloc_internal",
"@com_google_absl//absl/base:nullability",
"@com_google_absl//absl/container:fixed_array",
"@com_google_absl//absl/container:flat_hash_map",
Expand Down
2 changes: 2 additions & 0 deletions tcmalloc/deallocation_profiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,8 @@ DeallocationSample::DeallocationSample(DeallocationProfilerList* list) {
profiler_ = std::make_unique<DeallocationProfiler>(list);
}

DeallocationSample::~DeallocationSample() = default;

tcmalloc::Profile DeallocationSample::Stop() && {
if (profiler_ != nullptr) {
tcmalloc::Profile profile = profiler_->Stop();
Expand Down
2 changes: 1 addition & 1 deletion tcmalloc/deallocation_profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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() override;

tcmalloc::Profile Stop() && override;

Expand Down

0 comments on commit e38cc66

Please sign in to comment.