Skip to content

Commit

Permalink
Apply review comment
Browse files Browse the repository at this point in the history
Signed-off-by: Kateryna Nezdolii <kateryna.nezdolii@gmail.com>
  • Loading branch information
nezdolik committed May 27, 2024
1 parent 4853dda commit bd439bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/common/memory/stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ AllocatorManager::AllocatorManager(
MEMORY_ALLOCATOR_MANAGER_STATS(POOL_COUNTER_PREFIX(scope, "tcmalloc."))}),
api_(api) {
#if defined(GPERFTOOLS_TCMALLOC)
RELEASE_ASSERT((bytes_to_release_ == 0), "Memory releasing is not supported for gperf tcmalloc.");
if (bytes_to_release_ > 0) {
throw Envoy::EnvoyException("Memory releasing is not supported for gperf tcmalloc.");
}
#elif defined(TCMALLOC)
configureBackgroundMemoryRelease();
#endif
Expand Down

0 comments on commit bd439bc

Please sign in to comment.