microsoft / mimalloc

mimalloc is a compact general purpose allocator with excellent performance.
MIT License
9.74k stars 791 forks source link

why mi_bin() return MI_BIN_HUGE if wsize > MI_MEDIUM_OBJ_WSIZE_MAX #912

Open kimixuchen opened 1 week ago

kimixuchen commented 1 week ago

I have questions about function mi_bin() else if (wsize > MI_MEDIUM_OBJ_WSIZE_MAX) { bin = MI_BIN_HUGE; } why it returns MI_BIN_HUGE if wsize > MI_MEDIUM_OBJ_WSIZE_MAX, I think wsize should compares with MI_LARGE_OBJ_WSIZE_MAX?