mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Get rid of lock overlap in prof_recent_alloc_reset
This commit is contained in:
parent
bd3be8e0b1
commit
7b67ed0b5a
1 changed files with 5 additions and 2 deletions
|
|
@ -182,12 +182,15 @@ prof_recent_alloc_reset(tsd_t *tsd, edata_t *edata) {
|
|||
if (dalloc_tctx != NULL) {
|
||||
nstime_update(&recent->dalloc_time);
|
||||
recent->dalloc_tctx = dalloc_tctx;
|
||||
dalloc_tctx = NULL;
|
||||
}
|
||||
} else if (dalloc_tctx != NULL) {
|
||||
}
|
||||
malloc_mutex_unlock(tsd_tsdn(tsd), &prof_recent_alloc_mtx);
|
||||
|
||||
if (dalloc_tctx != NULL) {
|
||||
/* We lost the rase - the allocation record was just gone. */
|
||||
decrement_recent_count(tsd, dalloc_tctx);
|
||||
}
|
||||
malloc_mutex_unlock(tsd_tsdn(tsd), &prof_recent_alloc_mtx);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue