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

关于node解析json的侧漏 #27

Closed
geeeger opened this issue Sep 30, 2020 · 1 comment
Closed

关于node解析json的侧漏 #27

geeeger opened this issue Sep 30, 2020 · 1 comment

Comments

@geeeger
Copy link
Owner

geeeger commented Sep 30, 2020

如下

@geeeger
Copy link
Owner Author

geeeger commented Sep 30, 2020

nodejs node issues 35048
nodejs node issues 33266

这两天有网友翻issue,翻到一个疑似node侧漏的issue
然后主要集中在,这是node的内存泄露呢,还是v8的
于是活跃的开发者们向chromium开发组同样提出了这个issue
https://bugs.chromium.org/p/v8/issues/detail?id=10538
经过一段时间的debug,确定了这个问题是来自于v8
当 try catch parse json 的错误的时候,创建的对象无法被回收,
该bug在v8 8.1被修复
同时开发组向node 推送了pr, 修复了v12 v14等一系列node版本中的该错误

值得一提的是,按照chrome的版本规则,这说明在chrome81以下的所有版本,都存在这个内存泄露问题。也就是说,这个问题在普遍所有设备上,都是存在的

@geeeger geeeger closed this as completed Sep 30, 2020
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