diff options
author | rmcf <rmcf@yandex-team.ru> | 2022-02-10 16:51:02 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:51:02 +0300 |
commit | 6a1621c5991cd17c6352affcad7c6931bef18917 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system | |
parent | 1f6a6eecc76bc32831570c7c438dc43e229b09aa (diff) | |
download | ydb-6a1621c5991cd17c6352affcad7c6931bef18917.tar.gz |
Restoring authorship annotation for <rmcf@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system')
-rw-r--r-- | util/system/madvise.cpp | 10 | ||||
-rw-r--r-- | util/system/madvise.h | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/util/system/madvise.cpp b/util/system/madvise.cpp index e7ae74731b..58c894e3ef 100644 --- a/util/system/madvise.cpp +++ b/util/system/madvise.cpp @@ -14,8 +14,8 @@ #ifndef MADV_DONTDUMP /* This flag is defined in sys/mman.h since Linux 3.4, but currently old libc header is in use \ for capability with Ubuntu 12.04, so we need to define it here manually */ #define MADV_DONTDUMP 16 /* Explicity exclude from the core dump, overrides the coredump filter bits */ -#endif - +#endif + #ifndef MADV_DODUMP /* This flag is defined in sys/mman.h since Linux 3.4, but currently old libc header is in use \ for capability with Ubuntu 12.04, so we need to define it here manually */ #define MADV_DODUMP 17 /* Undo the effect of an earlier MADV_DONTDUMP */ @@ -80,7 +80,7 @@ void MadviseEvict(const void* begin, size_t size) { Madvise(MADV_FREE, begin, size); #endif } - + void MadviseEvict(TArrayRef<const char> data) { MadviseEvict(data.data(), data.size()); } @@ -89,7 +89,7 @@ void MadviseEvict(TArrayRef<const ui8> data) { MadviseEvict(data.data(), data.size()); } -void MadviseExcludeFromCoreDump(const void* begin, size_t size) { +void MadviseExcludeFromCoreDump(const void* begin, size_t size) { #if defined(_darwin_) // Don't try to call function with flag which doesn't work // https://st.yandex-team.ru/PASSP-31755#6050bbafc68f501f2c22caab @@ -98,7 +98,7 @@ void MadviseExcludeFromCoreDump(const void* begin, size_t size) { #elif !defined(_win_) Madvise(MADV_DONTDUMP, begin, size); #endif -} +} void MadviseExcludeFromCoreDump(TArrayRef<const char> data) { MadviseExcludeFromCoreDump(data.data(), data.size()); diff --git a/util/system/madvise.h b/util/system/madvise.h index 524167ca32..606733152e 100644 --- a/util/system/madvise.h +++ b/util/system/madvise.h @@ -18,9 +18,9 @@ void MadviseRandomAccess(TArrayRef<const ui8> data); void MadviseEvict(const void* begin, size_t size); void MadviseEvict(TArrayRef<const char> data); void MadviseEvict(TArrayRef<const ui8> data); - -/// see linux madvise(MADV_DONTDUMP) -void MadviseExcludeFromCoreDump(const void* begin, size_t size); + +/// see linux madvise(MADV_DONTDUMP) +void MadviseExcludeFromCoreDump(const void* begin, size_t size); void MadviseExcludeFromCoreDump(TArrayRef<const char> data); void MadviseExcludeFromCoreDump(TArrayRef<const ui8> data); |