MCPcopy Create free account
hub / github.com/catboost/catboost / MadviseExcludeFromCoreDump

Function MadviseExcludeFromCoreDump

util/system/madvise.cpp:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void MadviseExcludeFromCoreDump(const void* begin, size_t size) {
92#if defined(_darwin_)
93 // Don't try to call function with flag which doesn't work
94 // https://st.yandex-team.ru/PASSP-31755#6050bbafc68f501f2c22caab
95 Y_UNUSED(begin);
96 Y_UNUSED(size);
97#elif !defined(_win_)
98 Madvise(MADV_DONTDUMP, begin, size);
99#endif
100}
101
102void MadviseExcludeFromCoreDump(TArrayRef<const char> data) {
103 MadviseExcludeFromCoreDump(data.data(), data.size());

Callers

nothing calls this directly

Calls 4

Y_UNUSEDFunction · 0.85
MadviseFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected