MCPcopy Create free account
hub / github.com/beefytech/Beef / prof_recent_alloc_is_empty

Function prof_recent_alloc_is_empty

BeefRT/JEMalloc/src/prof_recent.c:250–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250static bool
251prof_recent_alloc_is_empty(tsd_t *tsd) {
252 malloc_mutex_assert_owner(tsd_tsdn(tsd), &prof_recent_alloc_mtx);
253 if (ql_empty(&prof_recent_alloc_list)) {
254 assert(prof_recent_alloc_count == 0);
255 return true;
256 } else {
257 assert(prof_recent_alloc_count > 0);
258 return false;
259 }
260}
261
262static void
263prof_recent_alloc_assert_count(tsd_t *tsd) {

Callers 1

prof_recent_allocFunction · 0.85

Calls 2

tsd_tsdnFunction · 0.85

Tested by

no test coverage detected