mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 23:19:31 +03:00
commit
6068a8bb1b
2 changed files with 2 additions and 2 deletions
|
@ -431,7 +431,7 @@ static inline mi_page_t* _mi_ptr_page(void* p) {
|
||||||
return _mi_segment_page_of(_mi_ptr_segment(p), p);
|
return _mi_segment_page_of(_mi_ptr_segment(p), p);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the block size of a page (special cased for huge objects)
|
// Get the block size of a page (special case for huge objects)
|
||||||
static inline size_t mi_page_block_size(const mi_page_t* page) {
|
static inline size_t mi_page_block_size(const mi_page_t* page) {
|
||||||
const size_t bsize = page->xblock_size;
|
const size_t bsize = page->xblock_size;
|
||||||
mi_assert_internal(bsize > 0);
|
mi_assert_internal(bsize > 0);
|
||||||
|
|
|
@ -7,7 +7,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
|
|
||||||
/* -----------------------------------------------------------
|
/* -----------------------------------------------------------
|
||||||
The core of the allocator. Every segment contains
|
The core of the allocator. Every segment contains
|
||||||
pages of a {certain block size. The main function
|
pages of a certain block size. The main function
|
||||||
exported is `mi_malloc_generic`.
|
exported is `mi_malloc_generic`.
|
||||||
----------------------------------------------------------- */
|
----------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue