From 089d903eb534caa106ef8f94af51bc30c9e2bbea Mon Sep 17 00:00:00 2001 From: sabdenovch Date: Mon, 20 Apr 2026 16:18:43 +0300 Subject: Revert commit rXXXXXX, Poison memory in allocation holders commit_hash:3dc71807ca8b74fbc84807633ded4fca86b0151e --- library/cpp/yt/memory/ref.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'library/cpp/yt/memory/ref.cpp') diff --git a/library/cpp/yt/memory/ref.cpp b/library/cpp/yt/memory/ref.cpp index 1743680b581..5a6ca1e3373 100644 --- a/library/cpp/yt/memory/ref.cpp +++ b/library/cpp/yt/memory/ref.cpp @@ -3,7 +3,6 @@ #include "blob.h" #include -#include #include @@ -100,7 +99,6 @@ class TAllocationHolderBase public: ~TAllocationHolderBase() { - PoisonFreedMemory(GetRef()); #ifdef YT_ENABLE_REF_COUNTED_TRACKING TRefCountedTrackerFacade::FreeTagInstance(Cookie_); TRefCountedTrackerFacade::FreeSpace(Cookie_, Size_); @@ -131,8 +129,6 @@ protected: #endif if (options.InitializeStorage) { ::memset(static_cast(this)->GetBegin(), 0, Size_); - } else { - PoisonUninitializedMemory(GetRef()); } #ifdef YT_ENABLE_REF_COUNTED_TRACKING TRefCountedTrackerFacade::AllocateTagInstance(Cookie_); -- cgit v1.3