-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't reuse a MarkOccurrences index if the global instance is not cur…
…rent anymore. Cached indexes may survive longer than a presentation compiler (for instance, when compiler settings are changed the presentation compiler restarts). This leads to wrong accesses to a "dead" compiler while using the index. Also switched to a weak reference in the cache. If there are many editors open, this can lead to significant memory consumption (especially when the compiler is out-dated). Note that this is not a memory leak, in the sense it won't grow unboundedly. As an optimization, we prefer to recompute the index if the VM decides it needed to collect the index, instead of holding large chunks of heap in the hope that it will still be useful. Fixed #1001303.
- Loading branch information
Showing
1 changed file
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters