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

[plug-in] memory: fix memory leak on plug-ins reload #4931

Merged
merged 1 commit into from
Apr 17, 2019
Merged

Conversation

benoitf
Copy link
Contributor

@benoitf benoitf commented Apr 17, 2019

Fix for eclipse-che/che-theia#120
about the require.cache cleanup, it was not enough to only remove entries from cache: nodejs/node#8443

After like 20 reloads we only have one occurence of the scripts bundled in the vsix:
image

Change-Id: I690e82db53a0d8478ebe3f8b7b5d6fc59fe8a12e
Signed-off-by: Florent Benoit fbenoit@redhat.com

about the require.cache, it's not enough to only remove from cache: nodejs/node#8443

Change-Id: I690e82db53a0d8478ebe3f8b7b5d6fc59fe8a12e
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
@benoitf benoitf added bug bugs found in the application plug-in system issues related to the plug-in system labels Apr 17, 2019
@benoitf benoitf requested a review from azatsarynnyy April 17, 2019 08:40
@benoitf benoitf requested a review from evidolob as a code owner April 17, 2019 08:40
@benoitf benoitf self-assigned this Apr 17, 2019
Copy link
Member

@azatsarynnyy azatsarynnyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Thanks a lot @benoitf !

@benoitf
Copy link
Contributor Author

benoitf commented Apr 17, 2019

@akosyakov fine for you ?

@benoitf benoitf merged commit 01dadcf into master Apr 17, 2019
@benoitf benoitf deleted the che-theia-120 branch April 17, 2019 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application plug-in system issues related to the plug-in system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants