MCPcopy Create free account
hub / github.com/apache/arrow / jemalloc_set_decay_ms

Function jemalloc_set_decay_ms

cpp/src/arrow/memory_pool_jemalloc.cc:149–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 } while (0)
148
149Status jemalloc_set_decay_ms(int ms) {
150 ssize_t decay_time_ms = static_cast<ssize_t>(ms);
151
152 int err = mallctl("arenas.dirty_decay_ms", nullptr, nullptr, &decay_time_ms,
153 sizeof(decay_time_ms));
154 RETURN_IF_JEMALLOC_ERROR(err);
155 err = mallctl("arenas.muzzy_decay_ms", nullptr, nullptr, &decay_time_ms,
156 sizeof(decay_time_ms));
157 RETURN_IF_JEMALLOC_ERROR(err);
158
159 return Status::OK();
160}
161
162#undef RETURN_IF_JEMALLOC_ERROR
163

Callers

nothing calls this directly

Calls 1

OKFunction · 0.70

Tested by

no test coverage detected