mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-03 05:59:31 +03:00
fix assertion failure (issue #1031)
This commit is contained in:
parent
afbc581f8d
commit
b2dcab58f7
1 changed files with 1 additions and 1 deletions
|
@ -523,7 +523,7 @@ static void mi_segment_os_free(mi_segment_t* segment, size_t segment_size, mi_se
|
|||
void _mi_segments_collect(bool force, mi_segments_tld_t* tld) {
|
||||
mi_pages_try_purge(force,tld);
|
||||
#if MI_DEBUG>=2
|
||||
if (!_mi_is_main_thread()) {
|
||||
if (!_mi_is_main_thread() && force) {
|
||||
mi_assert_internal(tld->pages_purge.first == NULL);
|
||||
mi_assert_internal(tld->pages_purge.last == NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue