diff options
author | daan <daan@microsoft.com> | 2019-07-02 16:44:35 -0700 |
---|---|---|
committer | daan <daan@microsoft.com> | 2019-07-02 16:44:35 -0700 |
commit | 8cb36c62e626620e7a9e146c3faaa2cc3e498af2 (patch) | |
tree | f42829b598c4cafc1a5f9cf36d478fe965ebba8c /include/mimalloc-internal.h | |
parent | 06bcea1761bd862a57f8e3d124e457bdf0c0d1ef (diff) | |
parent | c465f6ae35ee3d24aa0f44f0832860d6e32ba70f (diff) |
merge with dev branch
Diffstat (limited to 'include/mimalloc-internal.h')
-rw-r--r-- | include/mimalloc-internal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h index 36b6915..3e0df1e 100644 --- a/include/mimalloc-internal.h +++ b/include/mimalloc-internal.h @@ -10,7 +10,7 @@ terms of the MIT license. A copy of the license can be found in the file #include "mimalloc-types.h" -#if defined(MI_MALLOC_OVERRIDE) && defined(MI_INTERPOSE) +#if defined(MI_MALLOC_OVERRIDE) && defined(__APPLE__) #define MI_TLS_RECURSE_GUARD #endif @@ -51,7 +51,7 @@ void _mi_segment_page_free(mi_page_t* page, bool force, mi_segments_tld_t* void _mi_segment_page_abandon(mi_page_t* page, mi_segments_tld_t* tld); bool _mi_segment_try_reclaim_abandoned( mi_heap_t* heap, bool try_all, mi_segments_tld_t* tld); void _mi_segment_thread_collect(mi_segments_tld_t* tld); -uint8_t* _mi_segment_page_start(const mi_segment_t* segment, const mi_page_t* page, size_t* page_size); // page start for any page +uint8_t* _mi_segment_page_start(const mi_segment_t* segment, const mi_page_t* page, size_t block_size, size_t* page_size); // page start for any page // "page.c" void* _mi_malloc_generic(mi_heap_t* heap, size_t size) mi_attr_noexcept mi_attr_malloc; @@ -212,7 +212,7 @@ static inline mi_page_t* _mi_segment_page_of(const mi_segment_t* segment, const // Quick page start for initialized pages static inline uint8_t* _mi_page_start(const mi_segment_t* segment, const mi_page_t* page, size_t* page_size) { - return _mi_segment_page_start(segment, page, page_size); + return _mi_segment_page_start(segment, page, page->block_size, page_size); } // Get the page containing the pointer |