mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 11:58:41 +03:00
merge from dev; free huge objects directly and keep them abandoned
This commit is contained in:
commit
19f473e49a
4 changed files with 42 additions and 11 deletions
|
@ -915,6 +915,7 @@ static mi_page_t* mi_segment_huge_page_alloc(size_t size, mi_segments_tld_t* tld
|
|||
if (segment == NULL || page==NULL) return NULL;
|
||||
mi_assert_internal(segment->used==1);
|
||||
mi_assert_internal(page->block_size >= size);
|
||||
segment->thread_id = 0; // huge segments are immediately abandoned
|
||||
return page;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue