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

使用runable操作,不会内存泄漏吗? #5

Open
xtynet opened this issue Nov 9, 2021 · 1 comment
Open

使用runable操作,不会内存泄漏吗? #5

xtynet opened this issue Nov 9, 2021 · 1 comment

Comments

@xtynet
Copy link

xtynet commented Nov 9, 2021

使用runable操作,不会内存泄漏吗?

@Carlyle-Lee
Copy link
Collaborator

使用runable操作,不会内存泄漏吗?

TM 内部有队列维护任务列表,当任务执行完成后,就会彻底从TM内部移除。 对于因为依赖条件一直没有执行的任务,如果持有了某些已销毁页面的context,是存在内存泄漏风险的。TM提供了API批量移除一些列任务。可以在退出页面的时候,显式的把这些任务移除掉。

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

2 participants