Tony

Results 3 comments of Tony

Problem Diagnosis: The issue occurs because mi_manage_os_memory only informs mimalloc about the available memory block but does not guarantee that allocations will happen within that block. As a result, mi_malloc...

Hi! I’ll try to resolve your questions as far as my knowledge permits. 1. Why The Original Code Is Problematic In the original code: ``` mi_manage_os_memory_ex(addr, size, /*commit?*/ true, /*allow_large?*/...

Thanks for the clarification @daanx ! I misunderstood the thread safety of mi_heap_malloc. That makes sense. I appreciate the explanation! I’ll keep that in mind for future contributions. Thanks again...