mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Remove an incorrect assertion.
Background threads are created without holding the global background_thread lock, which mean paused state is possible (and fine).
This commit is contained in:
parent
dedfeecc4e
commit
b8f4c730ef
1 changed files with 4 additions and 1 deletions
|
|
@ -398,7 +398,10 @@ check_background_thread_creation(tsd_t *tsd, unsigned *n_created,
|
|||
}
|
||||
background_thread_info_t *info = &background_thread_info[i];
|
||||
malloc_mutex_lock(tsdn, &info->mtx);
|
||||
assert(info->state != background_thread_paused);
|
||||
/*
|
||||
* In case of the background_thread_paused state because of
|
||||
* arena reset, delay the creation.
|
||||
*/
|
||||
bool create = (info->state == background_thread_started);
|
||||
malloc_mutex_unlock(tsdn, &info->mtx);
|
||||
if (!create) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue