This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Refactoring(2): Temp data are kept in memory after renaming #1048
Comments
sailingKieler
added a commit
that referenced
this issue
Apr 9, 2019
…esourceRelocationProcessor' in favor of proper memory deallocation, addresses #1048
sailingKieler
added a commit
that referenced
this issue
Apr 9, 2019
…esourceRelocationProcessor' in favor of proper memory deallocation, addresses #1048 Signed-off-by: Christian Schneider <[email protected]>
@sailingKieler can you please describe what is left open and what is already solved by your pr? |
The problem described in the title
is fixed, so the issue can be closed.
I saw that with Guice 4.1 that part changed significantly but I don't know wether it would be desirable or even possible to update Guice. Maybe a change of |
that would be eclipse/xtext-core#393 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The temporary resource sets created and populated during rename or move refactorings are kept in memory for too long, potentially for whole life of the application. That may happen if the language injectors are initialized in a
ModalContextThread
, which transitively holds the refactoring data, because Guice 3.0 injectors hold thecreatingThread
objects for their entire lifes, seeIMO the observed scenario is hardly avoidable without changing the implementation
ModalContext
, modifying Guice, or significantly changing the initialization of the involved injectors. However, at least theChangeSerializer
instances with their temporary data should be disposed once the text changes have been prepared.The text was updated successfully, but these errors were encountered: