diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:39:40 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:57:14 +0300 |
commit | e601ca03f859335d57ecff2e5aa6af234b6052ed (patch) | |
tree | de519a847e58a1b3993fcbfe05ff44cc946a3e24 /library/cpp/actors/util/rope.h | |
parent | bbf2b6878af3854815a2c0ecb07a687071787639 (diff) | |
download | ydb-e601ca03f859335d57ecff2e5aa6af234b6052ed.tar.gz |
Y_VERIFY->Y_ABORT_UNLESS at ^l
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/actors/util/rope.h')
-rw-r--r-- | library/cpp/actors/util/rope.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/actors/util/rope.h b/library/cpp/actors/util/rope.h index 201ce06f0d..d1385f6b75 100644 --- a/library/cpp/actors/util/rope.h +++ b/library/cpp/actors/util/rope.h @@ -30,7 +30,7 @@ class TRopeAlignedBuffer : public IContiguousChunk { , Capacity(size) , Offset((Alignment - reinterpret_cast<uintptr_t>(Data)) & (Alignment - 1)) { - Y_VERIFY(Offset <= Alignment - MallocAlignment); + Y_ABORT_UNLESS(Offset <= Alignment - MallocAlignment); } public: @@ -153,8 +153,8 @@ private: void CheckValid() const { #ifndef NDEBUG - Y_VERIFY(ValidityToken == Rope->GetValidityToken()); - Y_VERIFY(Iter == Rope->Chain.end() || Iter->Backend); + Y_ABORT_UNLESS(ValidityToken == Rope->GetValidityToken()); + Y_ABORT_UNLESS(Iter == Rope->Chain.end() || Iter->Backend); #endif } @@ -505,7 +505,7 @@ public: } void ExtractFront(size_t num, TRope *dest) { - Y_VERIFY(Size >= num); + Y_ABORT_UNLESS(Size >= num); if (num == Size && !*dest) { *dest = std::move(*this); return; |