summaryrefslogtreecommitdiffstats
path: root/library/cpp/yt
Commit message (Collapse)AuthorAgeFilesLines
* YT-22593: Reduce TString usage in core/miscbabenko48 hours1-1/+1
| | | | commit_hash:ba8c42476d6274212745348071682042e780037f
* Cache process/thread id getters and use them in TError origin capturebabenko2 days19-10/+261
| | | | | | | | | | | | | | | | | | | | | ## Motivation Profiling the YT master Automaton thread showed TOriginAttributes::Capture (run on every non-OK TError) spending ~60% of its time in a getpid() syscall — uncached on glibc >= 2.25. NYT::GetCurrentThreadId() (gettid) feeds hot thread-affinity / log-manager checks on the same thread. ## Changes - New library/cpp/yt/system/process_id.* with cached GetProcessId(); GetSystemThreadId() now caches the kernel tid in TLS. Both caches reset in the child after fork. - Moved thread_name.{h,cpp} from misc to system. - Removed GetCurrentProcessId/GetCurrentThreadId shims from yt/yt/core/misc/proc.{h,cpp}; migrated all callers to NYT::GetProcessId / NYT::GetSystemThreadId. - TOriginAttributes::Capture uses the cached getters; recorded Tid is now the real kernel tid (matches perf/ps). - Added microbenchmarks (library/cpp/yt/system/benchmarks, yt/yt/core/benchmarks/error.cpp). ## Microbenchmarks (release) | | before | after | |---|---|---| | getpid | 101 ns | 0.33 ns | | gettid | 102 ns | 1.64 ns | | Capture | 161 ns | 50 ns | | failed TError | 221 ns | 74 ns | commit_hash:ee37ae57d61a5a2dd33daee935270f4bb93b7ff9
* Generalize GetEnvValueOrThrow with a typed conversion overloadbabenko6 days4-1/+83
| | | | | Add a templated GetEnvValueOrThrow<T> that parses the environment variable value via FromString, next to the existing std::string overload. commit_hash:0421b0463c473c8c7f88c0b1619484e52b002897
* YT: Add formatter for all protobuf enumsgrigminakov6 days1-1/+3
| | | | commit_hash:58bf07dcff4aac728a67e0607d2c3b49ad1feef1
* Cosmetics: fix typos in docstrings and commentsgearonixx10 days3-3/+3
| | | | | | | | | | | Fix typos in docstrings --- Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1733 Co-authored-by: ilyaibraev <[email protected]> commit_hash:33a12aeaeeaec2f93ef9f465a3d5cdff95b62757
* YT-26105: Make TError aware of ::TSystemErrordann2392026-05-251-0/+2
| | | | commit_hash:ca6efe06865fe9fc9ebfd5ca8bbd79c2acbb4ff3
* Use std::invoke to call std::invokable in TAtomicObject::Transformosidorkin2026-05-222-6/+6
| | | | commit_hash:699e7e9a27bcf1220bbe3e408349a36a50408644
* Remove excess blank linepechatnov2026-05-191-1/+0
| | | | commit_hash:fff41cdbc1400a312067a6517c334440404c662b
* YT-22593: Migrate yt/yt/ytree to std::stringbabenko2026-05-183-20/+36
| | | | commit_hash:3466775b052bc8a85a2aa85e9605968e7a5ea025
* Fix babenko-issuesdann2392026-05-121-1/+1
| | | | commit_hash:2728816c79b29fccf31698e16733a0220fd3069e
* YT-26137: Drop indicies in multicell managercherepashka2026-05-122-2/+4
| | | | | | | | | * Changelog entry Type: feature Component: master Drop indicies in multicell manager commit_hash:692a550606183f6a8cb93425761911bbba09dceb
* Extract environment variables helpers to library/cpp/yt/systembabenko2026-05-013-0/+26
| | | | commit_hash:5a11a7288f325d6fa0a9bec9a1ce0b7afa1f4984
* YT: Add missing 16bit types to TErrorAttribute conversionsdgolear2026-04-303-0/+22
| | | | commit_hash:7e973890af2061e2a78b34d31c404f000375a88b
* Intermediate changesrobot-piglet2026-04-301-1/+1
| | | | commit_hash:075da2320aef76c06611fc1f363508ed26ad1a78
* YT_DECLARE_SPIN_LOCK whack-a-mole 2: electric boogaloo, Theatrical Cutdann2392026-04-298-20/+23
| | | | commit_hash:946123c814d23e070516ef5f7d339cf6025547b6
* Introduce YT_SPIN_LOCK_INPLACE_TYPEdann2392026-04-282-1/+22
| | | | commit_hash:a21fb954574aa503699e20da93fad863363d4adf
* Use implicit bool conversion for null check in origin_attributes.cppbabenko2026-04-273-3/+3
| | | | commit_hash:cc1f5b9ecc05f6b098f1645ba338fc644c0bb53f
* Add Abseil-compatible support hashersbabenko2026-04-275-1/+53
| | | | commit_hash:2d2808f61599fcfea314ad660585e984d50ffbb3
* YT-27951: Use truncated string view to limit query length in tracesosidorkin2026-04-231-3/+3
| | | | commit_hash:84610a30b17de408952f5c68dbc32b18b753b247
* Poison memory in allocation holderssabdenovch2026-04-224-0/+41
| | | | commit_hash:c574e7092eae2a9ed715448139ca905f0af5562c
* YT-18571: Add format string checks to TStringBuilderBase::AppendFormat; also ↵babenko2026-04-224-15/+9
| | | | | | fix some releaved issues commit_hash:dd15e713a6a83c8a14f1df2f011fa06f189f4a00
* YT_DECLARE_SPIN_LOCK whack-a-moledann2392026-04-211-1/+1
| | | | commit_hash:1b74a48db886359075d1ae03494d493c2627e139
* YT-27951: Add special formatter for truncated stringosidorkin2026-04-203-0/+50
| | | | commit_hash:88bc9543595f9b630942d63aa1c3aee154056e92
* 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 mishandled corner case in ReadVarUint32babenko2026-04-192-18/+44
| | | | commit_hash:a2da9a8efcf62169b36a6c950e0a7d4550576eb6
* Use proper key comparer in TCompactFlatMapbabenko2026-04-191-6/+6
| | | | commit_hash:fe925e642ebbb6e9929cf82358873ddb8b754b90
* Increase default error attributes string truncation limit to 32Kbabenko2026-04-181-2/+4
| | | | commit_hash:da3595c17e930ef69088c3164f42adc50d57f283
* Fix some use-after-move bugspavook2026-04-174-5/+6
| | | | commit_hash:4bc357937e76b2b082671bb0f67ac3012ee4dbca
* YT-27910: Make some more fields in TServiceContext atomicbabenko2026-04-124-0/+524
| | | | commit_hash:24a87198c8fc53da983f9678679b990070e329b8
* YT-27872: Refactor BIND to fix ODR violationsdann2392026-04-036-22/+52
| | | | commit_hash:25c6545fed2bffe20f7a008a218b9245896926ec
* YT-27872: Fix ConvertToYsonString ODR violationdann2392026-04-031-0/+2
| | | | commit_hash:70f4e2c519e189107c5e9dec6ba45eeb58973f46
* Add TErrorOr::ValueOrCrashdann2392026-04-033-0/+67
| | | | commit_hash:7a04b71703a53450dbaa8ec880141545e019a71e
* Intermediate changesrobot-piglet2026-03-273-1/+9
| | | | commit_hash:6f47ff10b7e4503466c226a6d3df0637a5c14715
* Add suggestions on enum parse errorpechatnov2026-03-264-8/+63
| | | | commit_hash:3b7f35f613737aa92f473877e8b24782f7dfcd2a
* YT-18571: Drop YT_ATTRIBUTE_NO_UNIQUE_ADDRESS in favor of Y_NO_UNIQUE_ADDRESSbabenko2026-03-231-6/+0
| | | | commit_hash:c574736c9cbb7c6da6502dc751214d8d7f343568
* YT-18571: Drop YT_ATTRIBUTE_NO_SANITIZE_ADDRESS in favor of ↵babenko2026-03-231-2/+0
| | | | | | Y_NO_SANITIZE("address") commit_hash:30841b1871a64fd6b3cc1eebcc9e4d5f1281c4fa
* YT-18571: Extract and refactor execution stacksbabenko2026-03-144-0/+232
| | | | commit_hash:856b6638d9642f4711f5058d77bd58dd78accb8a
* 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/misc] remove 64-bit requirement error directivevasko2026-03-111-5/+0
| | | | commit_hash:5bb34cf1e8e039b59fff79917c694509fff4666c
* YT-27605: YT_LOG_FATAL_AND_THROW captures log message in error attributebabenko2026-03-093-9/+61
| | | | | | | I'm quite unhappy with the amount of copy-pasted and slightly altered code but the differences between `YT_LOG_ALERT_AND_THROW` and `YT_LOG_EVENT` are too subtle for a reasonable generalization. This commit also fixes some misplaced `[[(un)likely]]` annotations. commit_hash:3eda6b52e0e0cea0daf4d996602d446de2d7d732
* YT-27421, YT-27419, YT-27420: Fix data race in GetDataStatisticsbabenko2026-03-064-0/+228
| | | | commit_hash:2d7af3653dc3c1036b3b52409faba2fae321046a
* [yt/string] bit-independent version of FormatPointerValuevasko2026-03-061-3/+4
| | | | commit_hash:77b05e63c7d030fccb8d13d83f5e9dc4f660e19d
* Even better tracking of memory in range inferrersabdenovch2026-03-051-9/+18
| | | | commit_hash:ef7700a25960a737e5b047b2c21e473ebf15fbb9
* [yt] make SplitMix & HashCombine bit-independentvasko2026-03-053-13/+39
| | | | | add realization of hash-functions for 32-bit platforms commit_hash:3247a0524d3b66d759bf5ebd598be84c8dfb5837