| 1759 | } |
| 1760 | |
| 1761 | bool |
| 1762 | prof_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 | |
| 1777 | void |
| 1778 | prof_idump(tsdn_t *tsdn) { |
no test coverage detected