MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / purge

Function purge

deps/jemalloc/test/integration/aligned_alloc.c:10–14  ·  view source on GitHub ↗

* On systems which can't merge extents, tests that call this function generate * a lot of dirty memory very quickly. Purging between cycles mitigates * potential OOM on e.g. 32-bit Windows. */

Source from the content-addressed store, hash-verified

8 * potential OOM on e.g. 32-bit Windows.
9 */
10static void
11purge(void) {
12 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0,
13 "Unexpected mallctl error");
14}
15
16TEST_BEGIN(test_alignment_errors) {
17 size_t alignment;

Callers 1

aligned_alloc.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected