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

有办法释放掉TS创建的UObject对象吗? #4

Open
snadax opened this issue Oct 28, 2020 · 1 comment
Open

有办法释放掉TS创建的UObject对象吗? #4

snadax opened this issue Oct 28, 2020 · 1 comment

Comments

@snadax
Copy link

snadax commented Oct 28, 2020

现在的UObject对象好像都存在 ObjectMap 中,导致无法被垃圾回收,请问正确的释放UObject 应该如何做呢?

@chexiongsheng
Copy link
Owner

js引用被v8的gc释放了,对应的UObject就释放了,你可以调用JSEnv的LowMemoryNotification函数加快v8的gc

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