summaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/memory
Commit message (Collapse)AuthorAgeFilesLines
* Unpoison use-after-dtor access to ref countermakxenov9 days3-6/+22
| | | | | | | | Two scenarios addressed: - Access to ref counters after explicit destructor of an object - Access to vptr for upcast of an already destroyed object commit_hash:a8f27500111817f325832d006feb3ce6c3c830f1
* YT-18571: Drop the redundant `#undef FOO_INL_H_` from `-inl.h` guard blocks.babenko14 days1-1/+0
| | | | commit_hash:8ccfa9ed373c83b84c21d12078e06befb05f026c
* YT-18571: Drop TSharedRef::FromString(const char* str)babenko2026-07-113-9/+1
| | | | | | | | | Rationale: all overloads of `TSharedRef::FromString` must remain cheap and don't copy any payload. Remove the zero-terminated C string overload of `TSharedRef::FromString`. Callers passing a string literal should use `std::string/TString` explicitly. #| || **<a href="https://nda.ya.ru/t/-VG7qyBv7iD8vm" target="_blank">![](https://nda.ya.ru/t/mAiQIjHx7Mm3JC =30x) Echo tests</a>** || |# commit_hash:1a6718abcbe4e6a8f58592f55de8c37ceb2b73d3
* Add TAnyObject::Holds<T> and rename IsCurrentlyStored to HoldsTypebabenko2026-07-033-7/+41
| | | | commit_hash:5f0c248f2c24b501b04777fb0300693b0e942c89
* Address-salted ref-counted signaturebabenko2026-06-273-0/+111
| | | | | Self-validating signature word at the head of every `TRefCounter` (`YT_ENABLE_REF_COUNTED_SIGNATURE`, on by default in debug) so a coredump walker can distinguish a live ref-counted object from freed-but-unreclaimed memory and locate the counter without virtual-base casts. Consumed by gdb_plugin (separate PR). commit_hash:6696d8c26a8298be6543b1e3456de617d06417e9
* Add ExactRefCountedCast and TRef::Containsbabenko2026-06-247-0/+199
| | | | | | | | | Some handy helpers. `ExactRefCountedCast<T>(p)`: exact-type downcast for `New<T>()`-allocated objects. `New<T>(`) builds a final `TRefCountedWrapper<T>`, so this casts to the wrapper and upcasts back to `T*`; being final, the `dynamic_cast` lowers to a single `type_info` compare (~2ns vs ~20ns for the is-a path). `TRef::Contains(other)`: true iff other's range lies within this range. commit_hash:138e8719b8ecbd953437b81380e54f736db029ef
* Add TSharedMutableRef::AllocateViaMmapbabenko2026-06-125-1/+220
| | | | commit_hash:1666d5c27b2dfe54460efdc686d98ad955b0c4f1
* Cosmetics: fix typos in docstrings and commentsgearonixx2026-05-292-2/+2
| | | | | | | | | | | Fix typos in docstrings --- Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1733 Co-authored-by: ilyaibraev <[email protected]> commit_hash:33a12aeaeeaec2f93ef9f465a3d5cdff95b62757
* Fix babenko-issuesdann2392026-05-121-1/+1
| | | | commit_hash:2728816c79b29fccf31698e16733a0220fd3069e
* Intermediate changesrobot-piglet2026-04-301-1/+1
| | | | commit_hash:075da2320aef76c06611fc1f363508ed26ad1a78
* Add Abseil-compatible support hashersbabenko2026-04-272-1/+19
| | | | commit_hash:2d2808f61599fcfea314ad660585e984d50ffbb3
* Poison memory in allocation holderssabdenovch2026-04-224-0/+41
| | | | commit_hash:c574e7092eae2a9ed715448139ca905f0af5562c
* Revert commit rXXXXXX, Poison memory in allocation holderssabdenovch2026-04-201-4/+0
| | | | commit_hash:3dc71807ca8b74fbc84807633ded4fca86b0151e
* Poison memory in allocation holderssabdenovch2026-04-201-0/+4
| | | | commit_hash:0912d7a08b0b2ae26b6298108a9fdd57cabbc77a
* Fix some use-after-move bugspavook2026-04-171-1/+1
| | | | commit_hash:4bc357937e76b2b082671bb0f67ac3012ee4dbca
* YT-27872: Refactor BIND to fix ODR violationsdann2392026-04-034-21/+9
| | | | commit_hash:25c6545fed2bffe20f7a008a218b9245896926ec
* YT-18571: Turn TPackedPtr into a strong typedefbabenko2026-03-144-12/+17
| | | | commit_hash:1deb4fa77014b102af1c79903f60641f23a50813
* YT-27634: Annotate DCAS with TSAN intrinsicssabdenovch2026-03-132-3/+97
| | | | commit_hash:7b0bb805a82d9829ea93f5b867962e77a2c56244
* Fix TFreeList and its unittests for 32 bit platformbabenko2026-03-133-35/+85
| | | | commit_hash:6d5cf8bea86a35efd558df2aaec98702dc514f1c
* Intermediate changesrobot-piglet2026-03-131-4/+4
| | | | commit_hash:0f03724e68eb4d3d411946e1c7b201d1b79f951a
* 32-bit compatible library/cpp/yt/memorybabenko2026-03-133-3/+17
| | | | commit_hash:f68a98021cf1e69e6ac402deb24dc2eef75162f5
* YT-18571: Don't use tagged/packed ptrs in Hazard Pointersbabenko2026-03-121-7/+9
| | | | commit_hash:4744aaa8f540cfc9351f1aacb9e1431d115aed85
* YT-27421, YT-27419, YT-27420: Fix data race in GetDataStatisticsbabenko2026-03-064-0/+228
| | | | commit_hash:2d7af3653dc3c1036b3b52409faba2fae321046a
* Even better tracking of memory in range inferrersabdenovch2026-03-051-9/+18
| | | | commit_hash:ef7700a25960a737e5b047b2c21e473ebf15fbb9
* Add noexcept to move constuctors and assignments - leftovers #3osidorkin2026-03-045-7/+7
| | | | commit_hash:2e0271c73066f99267943a20d69391cfd450626f
* Intermediate changesrobot-piglet2026-03-031-2/+2
| | | | commit_hash:a66d1ef65085fb8e8bfe860b8b7a95cbc5793851
* Add noexcept to move constuctors and assignmentsosidorkin2026-03-0311-21/+21
| | | | commit_hash:dd937db7bbbfb5f6dfa3767c6f16213f97187eeb
* Replace DangerousGetPtr with TWeakPtrbabenko2026-03-012-7/+84
| | | | commit_hash:866e4401ff3564ae6e58c067f937c15d322a3828
* YT-27536: Fix (seemingly benign) race in TTwoLevelFairShareQueuebabenko2026-02-283-227/+331
| | | | commit_hash:700b15a49621e9f79e6e6c725a1aa958f9bd132e
* YT-22792 Support heterogeneous lookup for intrusive pointersdann2392026-02-182-46/+91
| | | | commit_hash:058958336f8d0f263f11997b6bf41f858fdc55a0
* Add direct includes required by internal libcxx changes in librarymikhnenko2026-02-101-0/+1
| | | | | | Original errors you can see [here](https://nda.ya.ru/t/cIW6kCld7U2bZB or [here](https://nda.ya.ru/t/kpJPyHA27U2bZJ commit_hash:d932f70eceac25c1d3b701b7a60be1b823b1f08b
* Do not copy holder ptr in TSharedMutableRange::GetHolderpechatnov2026-01-281-2/+2
| | | | commit_hash:d0a59b050291e7d3758b46f92f524fd3c60fac54
* YT-27061: Make OKFuture constinitbabenko2026-01-021-1/+1
| | | | commit_hash:3522ca2def9e06894323c3ac1b5e0e4e83572857
* YT-25976: fix blocks alignment in io requestsvvshlyaga2025-12-042-0/+51
| | | | commit_hash:785d73458fcb036340236b123b33a6f3b0b1c1ce
* Allow implicit cast from TIntrusivePtr<T> to TIntrusivePtr<const T>kvk19202025-11-172-12/+30
| | | | commit_hash:83dda252d4be350031caade9e138ba8e91930836
* YT-18571: Fixed range construction from spankoloshmet2025-10-211-1/+1
| | | | | Fixed range construction from span commit_hash:a7b4b66073a1d5ea79abc304966494b1e9543919
* Do not get ref counter when copy weak ptrthenewone2025-09-253-17/+75
| | | | | | | | | | | Если копировать TWeakPtr в момент разрушения объекта, на который он ссылается, то происходит гонка на vptr. GetRefCounter использует vptr, а деструктор объекта может его менять. Thread-sanitizer эту гонку видит. Unit test added; also fixed and enabled older test. Enabled thread sanitizer for library/cpp/yt/memory. commit_hash:87cb083a9905cc8a262b575868bbae3438b9324f
* Fix potential pointers overflowmikhnenko2025-09-121-1/+5
| | | | commit_hash:20039ca128a1ef8c3aaf337d71d58b1ecec783a1
* Fix `-Wignored-qualifiers` improved in clang20 in librarymikhnenko2025-09-121-3/+3
| | | | | Fix errors from [here](https://nda.ya.ru/t/6hgrAk757JpcZP commit_hash:7d5ee7690cd39bfde0529030cfa213b84ead669a
* babenko cosmeticnadya022025-08-154-5/+5
| | | | commit_hash:691cdf0de0f155c0c9076507a291a0c4f32a6065
* YT-18571: Cosmetics for YT_DEFINE_STRONG_TYPEDEFh0pless2025-08-111-2/+2
| | | | commit_hash:48c6dc49d8c0ffb3bbb5fa773dc38bdee243f3c3
* Fix TSharedRefArray::AreBitwiseEqualbabenko2025-08-021-1/+1
| | | | commit_hash:84321c155a5d7ecb04ec7b33fc464a244eb55073
* Introduce TSharedRefArray::AreBitwiseEqualbabenko2025-08-012-0/+18
| | | | commit_hash:d20246c9bd65274bc0b78b3c1cbc0cfcd5303d10
* Clang 20 has no construtor uintptr_t form nullptrmikhnenko2025-07-311-1/+1
| | | | | Fix errors from [here](https://nda.ya.ru/t/QK7atSi_7H4yFa commit_hash:49aec107605e173f20504a16aac876fd40d33adc
* Add missing includebabenko2025-06-241-0/+2
| | | | commit_hash:32e0f6ae89289ea4e3da978dcd91fc66d88373e9
* YT-25312: Fix TWithExtraSpace::GetExtraSpace to handle zero returned by ↵babenko2025-06-223-5/+15
| | | | | | malloc_usable_size commit_hash:d4310bf35afeb00d408d28e96cf82ebafd82886b
* Restore measuring the memory usage of write-table queries.nadya022025-06-114-4/+152
| | | | commit_hash:1d28ad476551aee1d5ab64c72205347128c27c68
* YT-25226: Pass new job resources to nodepogorelov2025-06-093-0/+51
| | | | commit_hash:20344f8d19f0bdc6a7544126cb74ab92c94e1069
* YT-24485: Support extra gang jobspogorelov2025-05-191-1/+1
| | | | | | | | | | | * Changelog entry Type: feature Component: controller-agent Support extra jobs for gang operations. Introduce gang ranks. commit_hash:1e27fe5d4e042d8ad3d981dfdab718ad41732924
* YT-24913: Split memory trackernadya022025-05-165-565/+12
| | | | commit_hash:af573daeadda0ee67ff6c0a595b6dc3ad6314c51