We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用自动扩展后,merge_free_chunk会报错,while ((char *)p0 >= mm->start && p0->is_free),从调试来看,内存访问都是无法获取的状态
The text was updated successfully, but these errors were encountered:
已更新 谢大佬指正
Sorry, something went wrong.
最新的资源,启用自动扩展后,如果初始化指定的块小于后面某次申请时的大小,你的if (mp->mem_pool_size - mm->alloc_mem < total_size)判断+自动扩展会导致系统内存全被申请掉。这里应该做适当的规避。
已更新
No branches or pull requests
使用自动扩展后,merge_free_chunk会报错,while ((char *)p0 >= mm->start && p0->is_free),从调试来看,内存访问都是无法获取的状态
The text was updated successfully, but these errors were encountered: