Skip to content

reuse ObjectTemplate reuse to avoid memory leak #1367

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

Merged
merged 1 commit into from
May 7, 2019

Conversation

vtrifonov
Copy link
Contributor

Related to #1363

As the array ObjectTemplate is the same for all arrays for an isolate we are caching them to avoid memory leak by creating a new ObjectTemplate for every new array.

@cla-bot cla-bot bot added the cla: yes label May 3, 2019
@vtrifonov vtrifonov merged commit 0f8e7b6 into master May 7, 2019
@vtrifonov vtrifonov deleted the trifonov/array-memory-leak branch May 7, 2019 08:13
@vtrifonov vtrifonov added this to the 5.4.0 milestone May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants