diff options
author | grickevich <grickevich@yandex-team.ru> | 2022-02-10 16:48:59 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:59 +0300 |
commit | b269ec1b854e2a830dbde2b5328a262a6a249b98 (patch) | |
tree | 5141ed0e2f98e033ea19987d51a7ae7429dc2fdd /library/cpp/balloc/balloc.cpp | |
parent | 2704bb412325db71fb2c5b3ffb25ce693c1d1298 (diff) | |
download | ydb-b269ec1b854e2a830dbde2b5328a262a6a249b98.tar.gz |
Restoring authorship annotation for <grickevich@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/balloc/balloc.cpp')
-rw-r--r-- | library/cpp/balloc/balloc.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/balloc/balloc.cpp b/library/cpp/balloc/balloc.cpp index fab489db4c..677527c427 100644 --- a/library/cpp/balloc/balloc.cpp +++ b/library/cpp/balloc/balloc.cpp @@ -285,24 +285,24 @@ extern "C" bool BallocDisabled() { extern "C" void DisableBalloc() { NBalloc::Disable(); } - + extern "C" void EnableBalloc() { NBalloc::Enable(); } -extern "C" void* memalign(size_t alignment, size_t size) { - void* ptr; - int res = posix_memalign(&ptr, alignment, size); - return res ? nullptr : ptr; -} - +extern "C" void* memalign(size_t alignment, size_t size) { + void* ptr; + int res = posix_memalign(&ptr, alignment, size); + return res ? nullptr : ptr; +} + extern "C" void* valloc(size_t size) { return memalign(NBalloc::PAGE_ELEM, size); } #if !defined(_MSC_VER) && !defined(_freebsd_) -// Workaround for pthread_create bug in linux. -extern "C" void* __libc_memalign(size_t alignment, size_t size) { - return memalign(alignment, size); -} -#endif +// Workaround for pthread_create bug in linux. +extern "C" void* __libc_memalign(size_t alignment, size_t size) { + return memalign(alignment, size); +} +#endif |