aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'rightlib' into merge-libs-250508-0050Alexander Smirnov4 days2-1/+8
|\
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk4 days1-1/+1
| | | | | | | | commit_hash:6ab3f64729fb592117da2b686bb438b2ced9130f
| * TConcurrentHashMap::Exchangevadim-xd4 days1-0/+7
| | | | | | | | commit_hash:09134890fc4d5d1267d6efa21bff48235205e6e5
* | Merge branch 'rightlib' into merge-libs-250507-0050Alexander Smirnov5 days5-13/+103
|\|
| * [library] Fix -Wdeprecated-this-capture warningnechda5 days2-2/+2
| | | | | | | | | | Fix for library commit_hash:4ffd5fad7dcb0fae1cd0597997304346d7ac8865
| * YT: Fix enricher, add from backtrace enricherpechatnov6 days3-11/+101
| | | | | | | | | | From backtrace enricher можно использовать для захвата бектрейсов при создании ошибок из исключений, а так же для перекладывания атрибутов из сложных исключений других библиотек. commit_hash:76711bd3bb7dbc1e41e43f80d43340d2ce8e4df7
* | Merge branch 'rightlib' into merge-libs-250505-0050Alexander Smirnov7 days1-1/+1
|\|
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk7 days1-1/+1
| | | | | | | | commit_hash:246e49c5fbd71919598ec11a86907fa9bb0b9e90
* | Merge branch 'rightlib' into merge-libs-250503-0050Alexander Smirnov9 days1-2/+1
|\|
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk10 days1-2/+1
| | | | | | | | commit_hash:fd68150f685a9af3bdf0d7bf217e8cfbf29f10ba
* | Merge branch 'rightlib' into merge-libs-250427-0050Alexander Smirnov2025-04-271-2/+1
|\|
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk2025-04-261-2/+1
| | | | | | | | commit_hash:c0411d32f1f366b8468679d3506bdf544d40e0e3
* | Merge branch 'rightlib' into merge-libs-250425-1915Alexander Smirnov2025-04-258-18/+14
|\|
| * Intermediate changesrobot-piglet2025-04-257-14/+0
| | | | | | | | commit_hash:a2ae9e9ddb0ebd0f3ce876aa1f8f29e291d3aed1
| * Fix YT_LOG_ALERT_AND_THROWh0pless2025-04-251-4/+14
| | | | | | | | commit_hash:5065ec89aed827ce2d112d5f8623dfb0215a5207
* | Merge branch 'rightlib' into merge-libs-250425-0050Alexander Smirnov2025-04-251-1/+1
|\|
| * Typo in ref_counted.hAlexey Arkhipenko2025-04-251-1/+1
| | | | | | | | | | | | | | | | | | No description --- Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1240 commit_hash:9afd1a8a5e8a67c4618712edca143bb56027764f
* | Merge branch 'rightlib' into merge-libs-250424-0050Alexander Smirnov2025-04-242-6/+25
|\|
| * Add new macro to replace some of the YT_VERIFYsh0pless2025-04-232-6/+25
| | | | | | | | commit_hash:f4f2e8b9ba31109593c94251f64e1061f00af304
* | Merge branch 'rightlib' into merge-libs-250423-0050Alexander Smirnov2025-04-234-7/+45
|\|
| * Add missing move constructor and move assignmenteivanov892025-04-222-0/+15
| | | | | | | | commit_hash:ca0a881f294c00b673673335c9366699c4be7c86
| * Intermediate changesrobot-piglet2025-04-221-6/+29
| | | | | | | | commit_hash:d92446f14c476da0a2e64664e0a97455e4d5d32a
| * Add missing Collect method to THistogramCountereivanov892025-04-221-1/+1
| | | | | | | | | | by @va-kuznecov commit_hash:26d8159e9bd33f1dd9471154655b861b203dbe10
* | Merge branch 'rightlib' into merge-libs-250420-0050Alexander Smirnov2025-04-201-1/+1
|\|
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk2025-04-201-1/+1
| | | | | | | | commit_hash:fdd4066092ef9cf0ffe2683524a24cd3fc65818a
* | Merge branch 'rightlib' into merge-libs-250418-0050Alexander Smirnov2025-04-1813-51/+593
|\|
| * YT-24537: Prioritize writers in TReaderWriterSpinLock, rename old version to ↵pavook2025-04-1710-20/+521
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TWriterStarvingRWLock Previously, it was possible that `TReaderWriterSpinLock` wouldn't let the writer through if there's a steady flow of readers. This change addresses that by: 1. Prioritizing writers inside the spinlock by adding an additional `WriterReady` flag that writers set on arrival. This flag doesn't allow any readers to come through. 2. Adding the proper tests to verify this functionality, as well as spinlock's behaviour under forks. 3. Clarifying the documentation about spinlock guarantees 4. Adding a TLA+ model, formally specifying and verifying the guarantees of the new spinlock. 5. Renaming the old lock to `TWriterStarvingRWSpinLock`, and replacing all usages inside YT with the new version (renaming all usages outside of YT to the WriterStarving version). This is a second attempt of REVIEW: 8233768, the first one was rolled back as it lead to deadlocks in user code with reentrant reader locks: the case of `AcquireReader(thread0) -> AcquireWriter(thread1) -> AcquireReader(thread0)` is a deadlock, as `thread0` will not be able to acquire the lock (for the second time) before `thread1` frees writer lock, and `thread1` will not be able to acquire writer lock before the reader lock will be released by `thread0`, which won't happen until `thread0` acquires the lock for the second time. See/for more context and a real example of such situation. Analogous problem can happen with fibers: this is why you shouldn't allow context switches under the lock. Wondering why this ugly name `WriterStarvingRWSpinLock` appeared in your beautiful code? No worries, if you are **sure** that you don't use reentrant locks or fiber switches under the lock, you can freely replace your usage with the new `ReaderWriterSpinLock`. The replacement is drop-in. [nodiff:caesar] commit_hash:97683f854defca00cc283f5a2a10a1730b3c9174
| * Intermediate changesrobot-piglet2025-04-171-7/+3
| | | | | | | | commit_hash:103a2a417e1039b8e61dc17b40bec9a9b6a7dfd1
| * refactor counters page to better support ic-proxyxenoxeno2025-04-171-23/+68
| | | | | | | | commit_hash:d6538967a151a3aba3c806d3d1ba3f4c7ef1ae47
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk2025-04-171-1/+1
| | | | | | | | commit_hash:3b3c9b5707e608f411cace07b0b7a41f2ec1f2cb
* | Merge branch 'rightlib' into merge-libs-250416-2114Alexander Smirnov2025-04-164-6/+19
|\|
| * Fix MakeFormattableViewlukyan2025-04-163-4/+17
| | | | | | | | commit_hash:0e4b24c65451e75f168b456cd0d271ddebb7219d
| * Intermediate changesrobot-piglet2025-04-161-2/+2
| | | | | | | | commit_hash:f16769226fca7335d2bcf5fb633bf82f06011d96
* | Merge branch 'rightlib' into merge-libs-250416-0829Alexander Smirnov2025-04-1618-54/+131
|\|
| * Fix bug in proto2json map empty keys serializationvoevodskiy2025-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `<library/cpp/protobuf/json/proto2json.h>` неправильно сериализует пустой ключ protobuf'ной map'ы ``` message TMyMessage { map<string, string> Fields = 1; } ``` При таком протобуфе ``` Fields { key: "" value: "1" } ``` Сейчас получается json ``` { "value": "1" } ``` Хотя должен получаться такой ``` { "": 1 } ``` commit_hash:e678bffbda1a062fa0fcaaba65c2e5f6bf13d558
| * Intermediate changesrobot-piglet2025-04-151-0/+6
| | | | | | | | commit_hash:6e0336f180bc33996d20f97d2135b5b46109a052
| * Revert commit rXXXXXX, YT-24537: Prioritize writers in TReaderWriterSpinLockpavook2025-04-155-266/+17
| | | | | | | | | | It turns out, RWSpinLock previously accidentally supported recursive AcquireReaders, and this property was broken with the change. commit_hash:f996e7b52ef8b3d37118034530a094af0efbe435
| * Fix some errors related with libcxx update in librarymikhnenko2025-04-151-0/+1
| | | | | | | | commit_hash:583294dce96f9191d4976fa33730362bac79892f
| * Enable more parentheses-related warningsbabenko2025-04-141-1/+11
| | | | | | | | commit_hash:e5aee6f170c4d38261597cd10e9b42c2dc58c1f3
| * Intermediate changesrobot-piglet2025-04-141-28/+30
| | | | | | | | commit_hash:6452cbd39bd37ef1f2bd6be70bf9ceb91fb08a26
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk2025-04-141-1/+1
| | | | | | | | commit_hash:ece56d3b0a1a270d28958e82f020d390de1485c2
| * Intermediate changesrobot-piglet2025-04-112-0/+9
| | | | | | | | commit_hash:3ca33ca3ca1c17f83267938f846bee0cb3c3461b
| * YT-24537: Prioritize writers in TReaderWriterSpinLockpavook2025-04-105-17/+266
| | | | | | | | commit_hash:94fee5363799655628bd7e2c144a7869a9d89002
| * use TString::Join() and use TStringBuf instead of const char*tobo2025-04-102-5/+4
| | | | | | | | commit_hash:451ebc0373719a4e87b0eef9c6278b1fe8eea842
| * Use consistent format and naming in blocks' loggingngc2242025-04-101-1/+1
| | | | | | | | commit_hash:77f144acd2d648f4e32055553be332f1d25d6106
| * List captured variables explicitly when 'this' has been implicitly captured ↵akhropov2025-04-102-4/+4
| | | | | | | | | | | | to avoid compiler warnings. commit_hash:6dda5bad9e3d887f91817bd4fdab95b66f3db001
| * remove unused includetobo2025-04-101-1/+0
| | | | | | | | commit_hash:acb52196481fcf4c768f63b391165775d3b35e4a
| * Make TLogger respect rvaluespogorelov2025-04-093-12/+62
| | | | | | | | commit_hash:dc29e989d9edbb7f171ba47632de428289393058
| * QL joins refactoringsabdenovch2025-04-081-0/+1
| | | | | | | | commit_hash:bf6a38b831d4a1301e19a6524c711d7a1c17bf48
* | Merge branch 'rightlib' into merge-libs-250408-0050Alexander Smirnov2025-04-087-77/+58
|\|