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

JarViewer: Fix orphaned temp files (remove background jobs) #6342

Closed

Conversation

chrisrueger
Copy link
Contributor

@chrisrueger chrisrueger commented Oct 28, 2024

Closes #6340

this fixes all the race conditions where update methods was called multiple times by different threads and created temp folders multiple times. Now only one temp folder per opened jar is created. Also did not notice a performance problem when opening the jar.

Not sure if not using a Background Job is a good or bad to do in Eclipse. But I had the feeling they do more harm than good in this case.

this fixes all the race conditions where update methods was called multiple times by different threads and created temp folders multiple times. Now only one temp folder per opened jar is created.
Also did not notice a performance problem when opening the jar.

Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
@chrisrueger chrisrueger changed the title JarViewer: remove background jobs JarViewer: Fix orphaned temp files (remove background jobs) Oct 28, 2024
@chrisrueger
Copy link
Contributor Author

As discussed with @pkriens today, removing the Background Job should not be done. He will look into a different approach. Closing this.

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

Successfully merging this pull request may close these issues.

BndtoolsJAREditorTempFiles keeps growing: 1 jar file creates two folders, but only one is removed on closing
1 participant