Fork自 RT-Thread / rt-thread
体验新版 GitCode,发现更多精彩内容 >>
When realloc a bigger space and the next node is free and big enough, we should directly relocate the next node instead of doing alloc/memcpy. The new method not only faster in this cases, it would avoid memory fragment as well.
拖放文件到此处或点击上传