fix aligned_ensured bug, trie inc bug, stats in the OS module

This commit is contained in:
daan 2019-07-03 00:16:27 -07:00
parent 10a29f17c8
commit 158705815e
2 changed files with 22 additions and 25 deletions

View file

@ -391,6 +391,9 @@ void _mi_page_retire(mi_page_t* page) {
static void mi_page_free_list_extend( mi_heap_t* heap, mi_page_t* page, size_t extend, mi_stats_t* stats)
{
UNUSED(stats);
mi_assert_internal(page->free == NULL);
mi_assert_internal(page->local_free == NULL);
mi_assert_internal(page->capacity + extend <= page->reserved);
void* page_area = _mi_page_start(_mi_page_segment(page), page, NULL );
size_t bsize = page->block_size;
mi_block_t* start = mi_page_block_at(page, page_area, page->capacity);