Skip to content
New issue

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

关于内存池的“玩具”修改 #170

Open
yxjcp opened this issue Dec 7, 2024 · 0 comments
Open

关于内存池的“玩具”修改 #170

yxjcp opened this issue Dec 7, 2024 · 0 comments

Comments

@yxjcp
Copy link

yxjcp commented Dec 7, 2024

内存池中,allocate和deallocate函数中均存在改变局部变量指针,但是没有同步到全局变量的问题

  my_free_list = q; // 修改前  
  free_list[M_freelist_index(n)] = q; // 修改后

也许可以通过这样的方式修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant