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/ytalloc/impl/bridge.cpp | |
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/ytalloc/impl/bridge.cpp')
-rw-r--r-- | library/cpp/ytalloc/impl/bridge.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/ytalloc/impl/bridge.cpp b/library/cpp/ytalloc/impl/bridge.cpp index 5444a8d48b7..95a47619982 100644 --- a/library/cpp/ytalloc/impl/bridge.cpp +++ b/library/cpp/ytalloc/impl/bridge.cpp @@ -155,9 +155,9 @@ extern "C" void* valloc(size_t size) extern "C" void* aligned_alloc(size_t alignment, size_t size) { // Alignment must be a power of two. - Y_VERIFY((alignment & (alignment - 1)) == 0); + Y_ABORT_UNLESS((alignment & (alignment - 1)) == 0); // Alignment must not exceed the page size. - Y_VERIFY(alignment <= PageSize); + Y_ABORT_UNLESS(alignment <= PageSize); if (alignment <= 16) { // Proper alignment here is automatic. return Allocate(size); |