| 2186 | } |
| 2187 | |
| 2188 | static uint64_t |
| 2189 | prof_thr_uid_alloc(tsdn_t *tsdn) { |
| 2190 | uint64_t thr_uid; |
| 2191 | |
| 2192 | malloc_mutex_lock(tsdn, &next_thr_uid_mtx); |
| 2193 | thr_uid = next_thr_uid; |
| 2194 | next_thr_uid++; |
| 2195 | malloc_mutex_unlock(tsdn, &next_thr_uid_mtx); |
| 2196 | |
| 2197 | return thr_uid; |
| 2198 | } |
| 2199 | |
| 2200 | static prof_tdata_t * |
| 2201 | prof_tdata_init_impl(tsd_t *tsd, uint64_t thr_uid, uint64_t thr_discrim, |
no test coverage detected