| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| | |
commit_hash:6ab3f64729fb592117da2b686bb438b2ced9130f
|
| |
| |
| |
| | |
commit_hash:09134890fc4d5d1267d6efa21bff48235205e6e5
|
|\| |
|
| |
| |
| |
| |
| | |
Fix for library
commit_hash:4ffd5fad7dcb0fae1cd0597997304346d7ac8865
|
| |
| |
| |
| |
| | |
From backtrace enricher можно использовать для захвата бектрейсов при создании ошибок из исключений, а так же для перекладывания атрибутов из сложных исключений других библиотек.
commit_hash:76711bd3bb7dbc1e41e43f80d43340d2ce8e4df7
|
|\| |
|
| |
| |
| |
| | |
commit_hash:246e49c5fbd71919598ec11a86907fa9bb0b9e90
|
|\| |
|
| |
| |
| |
| | |
commit_hash:fd68150f685a9af3bdf0d7bf217e8cfbf29f10ba
|
|\| |
|
| |
| |
| |
| | |
commit_hash:c0411d32f1f366b8468679d3506bdf544d40e0e3
|
|\| |
|
| |
| |
| |
| | |
commit_hash:a2ae9e9ddb0ebd0f3ce876aa1f8f29e291d3aed1
|
| |
| |
| |
| | |
commit_hash:5065ec89aed827ce2d112d5f8623dfb0215a5207
|
|\| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
No description
---
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1240
commit_hash:9afd1a8a5e8a67c4618712edca143bb56027764f
|
|\| |
|
| |
| |
| |
| | |
commit_hash:f4f2e8b9ba31109593c94251f64e1061f00af304
|
|\| |
|
| |
| |
| |
| | |
commit_hash:ca0a881f294c00b673673335c9366699c4be7c86
|
| |
| |
| |
| | |
commit_hash:d92446f14c476da0a2e64664e0a97455e4d5d32a
|
| |
| |
| |
| |
| | |
by @va-kuznecov
commit_hash:26d8159e9bd33f1dd9471154655b861b203dbe10
|
|\| |
|
| |
| |
| |
| | |
commit_hash:fdd4066092ef9cf0ffe2683524a24cd3fc65818a
|
|\| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
commit_hash:103a2a417e1039b8e61dc17b40bec9a9b6a7dfd1
|
| |
| |
| |
| | |
commit_hash:d6538967a151a3aba3c806d3d1ba3f4c7ef1ae47
|
| |
| |
| |
| | |
commit_hash:3b3c9b5707e608f411cace07b0b7a41f2ec1f2cb
|
|\| |
|
| |
| |
| |
| | |
commit_hash:0e4b24c65451e75f168b456cd0d271ddebb7219d
|
| |
| |
| |
| | |
commit_hash:f16769226fca7335d2bcf5fb633bf82f06011d96
|
|\| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
`<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
|
| |
| |
| |
| | |
commit_hash:6e0336f180bc33996d20f97d2135b5b46109a052
|
| |
| |
| |
| |
| | |
It turns out, RWSpinLock previously accidentally supported recursive AcquireReaders, and this property was broken with the change.
commit_hash:f996e7b52ef8b3d37118034530a094af0efbe435
|
| |
| |
| |
| | |
commit_hash:583294dce96f9191d4976fa33730362bac79892f
|
| |
| |
| |
| | |
commit_hash:e5aee6f170c4d38261597cd10e9b42c2dc58c1f3
|
| |
| |
| |
| | |
commit_hash:6452cbd39bd37ef1f2bd6be70bf9ceb91fb08a26
|
| |
| |
| |
| | |
commit_hash:ece56d3b0a1a270d28958e82f020d390de1485c2
|
| |
| |
| |
| | |
commit_hash:3ca33ca3ca1c17f83267938f846bee0cb3c3461b
|
| |
| |
| |
| | |
commit_hash:94fee5363799655628bd7e2c144a7869a9d89002
|
| |
| |
| |
| | |
commit_hash:451ebc0373719a4e87b0eef9c6278b1fe8eea842
|
| |
| |
| |
| | |
commit_hash:77f144acd2d648f4e32055553be332f1d25d6106
|
| |
| |
| |
| |
| |
| | |
to avoid compiler warnings.
commit_hash:6dda5bad9e3d887f91817bd4fdab95b66f3db001
|
| |
| |
| |
| | |
commit_hash:acb52196481fcf4c768f63b391165775d3b35e4a
|
| |
| |
| |
| | |
commit_hash:dc29e989d9edbb7f171ba47632de428289393058
|
| |
| |
| |
| | |
commit_hash:bf6a38b831d4a1301e19a6524c711d7a1c17bf48
|
|\| |
|