mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 11:58:41 +03:00
add ubsan and tsan to pipeline
This commit is contained in:
parent
651ff2c68b
commit
8e6a475386
6 changed files with 21 additions and 9 deletions
|
@ -92,10 +92,12 @@ static bool mi_page_is_valid_init(mi_page_t* page) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if !MI_TRACK_ENABLED && !MI_TSAN
|
||||
mi_block_t* tfree = mi_page_thread_free(page);
|
||||
mi_assert_internal(mi_page_list_is_valid(page, tfree));
|
||||
//size_t tfree_count = mi_page_list_count(page, tfree);
|
||||
//mi_assert_internal(tfree_count <= page->thread_freed + 1);
|
||||
#endif
|
||||
|
||||
size_t free_count = mi_page_list_count(page, page->free) + mi_page_list_count(page, page->local_free);
|
||||
mi_assert_internal(page->used + free_count == page->capacity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue