Fix assertion typos.
Reported by Conrad Meyer.
This commit is contained in:
parent
a3f4977217
commit
d49ac4c709
@ -1970,7 +1970,7 @@ arena_reset_finish_background_thread(tsd_t *tsd, unsigned arena_ind) {
|
|||||||
unsigned ind = arena_ind % ncpus;
|
unsigned ind = arena_ind % ncpus;
|
||||||
background_thread_info_t *info =
|
background_thread_info_t *info =
|
||||||
&background_thread_info[ind];
|
&background_thread_info[ind];
|
||||||
assert(info->state = background_thread_paused);
|
assert(info->state == background_thread_paused);
|
||||||
malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx);
|
malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx);
|
||||||
info->state = background_thread_started;
|
info->state = background_thread_started;
|
||||||
malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx);
|
malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx);
|
||||||
|
@ -1799,7 +1799,7 @@ imalloc_body(static_opts_t *sopts, dynamic_opts_t *dopts, tsd_t *tsd) {
|
|||||||
*/
|
*/
|
||||||
assert(dopts->tcache_ind == TCACHE_IND_AUTOMATIC ||
|
assert(dopts->tcache_ind == TCACHE_IND_AUTOMATIC ||
|
||||||
dopts->tcache_ind == TCACHE_IND_NONE);
|
dopts->tcache_ind == TCACHE_IND_NONE);
|
||||||
assert(dopts->arena_ind = ARENA_IND_AUTOMATIC);
|
assert(dopts->arena_ind == ARENA_IND_AUTOMATIC);
|
||||||
dopts->tcache_ind = TCACHE_IND_NONE;
|
dopts->tcache_ind = TCACHE_IND_NONE;
|
||||||
/* We know that arena 0 has already been initialized. */
|
/* We know that arena 0 has already been initialized. */
|
||||||
dopts->arena_ind = 0;
|
dopts->arena_ind = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user