| 2030 | } |
| 2031 | |
| 2032 | bool |
| 2033 | prof_accum_init(tsdn_t *tsdn, prof_accum_t *prof_accum) { |
| 2034 | cassert(config_prof); |
| 2035 | |
| 2036 | #ifndef JEMALLOC_ATOMIC_U64 |
| 2037 | if (malloc_mutex_init(&prof_accum->mtx, "prof_accum", |
| 2038 | WITNESS_RANK_PROF_ACCUM, malloc_mutex_rank_exclusive)) { |
| 2039 | return true; |
| 2040 | } |
| 2041 | prof_accum->accumbytes = 0; |
| 2042 | #else |
| 2043 | atomic_store_u64(&prof_accum->accumbytes, 0, ATOMIC_RELAXED); |
| 2044 | #endif |
| 2045 | return false; |
| 2046 | } |
| 2047 | |
| 2048 | void |
| 2049 | prof_idump(tsdn_t *tsdn) { |
no test coverage detected