MCPcopy Create free account
hub / github.com/F-Stack/f-stack / prof_accum_init

Function prof_accum_init

app/redis-6.2.6/deps/jemalloc/src/prof.c:1761–1775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1759}
1760
1761bool
1762prof_accum_init(tsdn_t *tsdn, prof_accum_t *prof_accum) {
1763 cassert(config_prof);
1764
1765#ifndef JEMALLOC_ATOMIC_U64
1766 if (malloc_mutex_init(&prof_accum->mtx, "prof_accum",
1767 WITNESS_RANK_PROF_ACCUM, malloc_mutex_rank_exclusive)) {
1768 return true;
1769 }
1770 prof_accum->accumbytes = 0;
1771#else
1772 atomic_store_u64(&prof_accum->accumbytes, 0, ATOMIC_RELAXED);
1773#endif
1774 return false;
1775}
1776
1777void
1778prof_idump(tsdn_t *tsdn) {

Callers 1

arena_newFunction · 0.85

Calls 1

malloc_mutex_initFunction · 0.85

Tested by

no test coverage detected