diff options
| author | alxmopo3ov <[email protected]> | 2026-03-26 18:13:33 +0300 |
|---|---|---|
| committer | alxmopo3ov <[email protected]> | 2026-03-26 19:36:00 +0300 |
| commit | 9d4e69b62e1f57d85025bccc76e217ae401004f9 (patch) | |
| tree | 996893f64b57bd4bc026219024a80ef15fe52bb7 /library/cpp/malloc/api | |
| parent | ab4fc65949569ba97be07763181915cbc7c661e7 (diff) | |
ClearCache() method in NMalloc
commit_hash:2a9ac53b44252aeea5188e821743fc79b064947b
Diffstat (limited to 'library/cpp/malloc/api')
| -rw-r--r-- | library/cpp/malloc/api/malloc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/cpp/malloc/api/malloc.h b/library/cpp/malloc/api/malloc.h index ebd545d6dd9..0aa07c0571b 100644 --- a/library/cpp/malloc/api/malloc.h +++ b/library/cpp/malloc/api/malloc.h @@ -18,8 +18,10 @@ namespace NMalloc { extern volatile bool IsAllocatorCorrupted; void AbortFromCorruptedAllocator(const char* errorMessage = nullptr); - // this function should be implemented by malloc implementations + // these function should be implemented by malloc implementations TMallocInfo MallocInfo(); + // clear ALL caches of the allocator. Each implementation clears as much as possible. + void ClearCaches(); struct TAllocHeader { void* Block; |
