You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Memory leak when using Intl.DateTimeFormat.format() and Intl.NumberFormat.format() #31914
How often does it reproduce? Is there a required condition?
It always happens. However, it's fixed in node v13.9, but any other version seems to be affected by that bug and leaks memory.
What is the expected behavior?
It shouldn't leak memory.
What do you see instead?
When running the script mentioned above after a few minutes:
GC roots no_script_shared_function_infos are not being cleaned up.
Additional information
This issue has been fixed in V8 and does not appear to leak memory in Node.js v13.9.
As a temporary workaround, we're memoizing those objects to minimize the leak.
Would it be possible to backport the V8 fix to Node.js v10 and v12 as well? Thank you!
Activity
Trott commentedon Feb 23, 2020
@nodejs/v8-update @nodejs/lts
Flarna commentedon Mar 5, 2020
I was not able to reproduce this with node 10.x but with 12.x. The V8 fix landed cleanly on v12.x branch, see #31939
deps: V8: cherry-pick cb1c2b0fbfe7
targos commentedon Dec 27, 2020
fix landed in v12.20.0