diff options
author | daan <daanl@outlook.com> | 2019-07-12 20:11:39 -0700 |
---|---|---|
committer | daan <daanl@outlook.com> | 2019-07-12 20:11:39 -0700 |
commit | 42cf5e1580eebdf1b79c511230cfa201707a82c5 (patch) | |
tree | 093d3a39ae8825ee453cbca37d9bbb34ce2e688c /include/mimalloc-internal.h | |
parent | 1fdb4b288fcbc754487374028c58b0035fab9fce (diff) |
reintroduce support for medium size pages
Diffstat (limited to 'include/mimalloc-internal.h')
-rw-r--r-- | include/mimalloc-internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h index 9fa5993..e996dfd 100644 --- a/include/mimalloc-internal.h +++ b/include/mimalloc-internal.h @@ -215,7 +215,7 @@ static inline mi_page_t* _mi_segment_page_of(const mi_segment_t* segment, const mi_assert_internal(diff >= 0 && diff < MI_SEGMENT_SIZE); uintptr_t idx = (uintptr_t)diff >> segment->page_shift; mi_assert_internal(idx < segment->capacity); - mi_assert_internal(segment->page_kind == MI_PAGE_SMALL || idx == 0); + mi_assert_internal(segment->page_kind <= MI_PAGE_MEDIUM || idx == 0); return &((mi_segment_t*)segment)->pages[idx]; } |