diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-14 18:25:43 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-14 18:25:43 +0300 |
commit | c7783ffcebf50c210ca2b469f3a52f59eb9045f8 (patch) | |
tree | 6c0885079aaefb96aa502108f458659aa66570de /library/cpp/coroutine/engine/stack/stack_utils.h | |
parent | 831543961b2710a44df149e1d363638bc008d265 (diff) | |
download | ydb-c7783ffcebf50c210ca2b469f3a52f59eb9045f8.tar.gz |
intermediate changes
ref:e520cbb2bc5359a80a7e56e636d1404e61f0c48c
Diffstat (limited to 'library/cpp/coroutine/engine/stack/stack_utils.h')
-rw-r--r-- | library/cpp/coroutine/engine/stack/stack_utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/coroutine/engine/stack/stack_utils.h b/library/cpp/coroutine/engine/stack/stack_utils.h index 46c65240b5..d5d6ef9e98 100644 --- a/library/cpp/coroutine/engine/stack/stack_utils.h +++ b/library/cpp/coroutine/engine/stack/stack_utils.h @@ -10,18 +10,18 @@ namespace NCoro::NStack { * @param alignedPtr : pointer to beginning of first fully allocated page * @return : true on success */ - bool GetAlignedMemory(uint64_t sizeInPages, char*& rawPtr, char*& alignedPtr) noexcept; + bool GetAlignedMemory(size_t sizeInPages, char*& rawPtr, char*& alignedPtr) noexcept; /*! Release mapped RSS memory. * @param alignedPt : page-size aligned memory on which RSS memory should be freed * @param numOfPages : number of pages to free from RSS memory */ - void ReleaseRss(char* alignedPtr, uint64_t numOfPages) noexcept; + void ReleaseRss(char* alignedPtr, size_t numOfPages) noexcept; /*! Count pages with RSS memory * @param alignedPtr : pointer to page-aligned memory for which calculations would be done * @param numOfPages : number of pages to check * @return : number of pages with RSS memory */ - uint64_t CountMapped(char* alignedPtr, uint64_t numOfPages) noexcept; + size_t CountMapped(char* alignedPtr, size_t numOfPages) noexcept; } |