Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 61432

Summary: JavaTextTools keeps last document in memory
Product: [Eclipse Project] JDT Reporter: Darin Swanson <Darin_Swanson>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, Tod_Creasey
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
Reduced reference graph showing the Lines kept in memory none

Description Darin Swanson CLA 2004-05-07 14:10:50 EDT
The Java text tools associated with the JavaPlugin has a partition scanner 
which has a fast partition scanner. 

This last scanner keeps a reference to the last document "connected" even when 
all editors have been closed.
Comment 1 Darin Swanson CLA 2004-05-07 14:12:34 EDT
Created attachment 10403 [details]
Reduced reference graph showing the Lines kept in memory
Comment 2 Dani Megert CLA 2004-05-10 05:15:09 EDT
There's no API to remove the document or reset it by providing null.
Comment 3 Darin Swanson CLA 2004-05-21 18:40:37 EDT
This can result in most of the state of the last debug session remaining in 
memory.
The InstructionPointerAnnotation (which has a reference to a stack frame) is 
retained in memory via the retention of the removed annotations associated 
with the annotation model of the document.
Comment 4 Darin Swanson CLA 2004-05-21 18:44:43 EDT
My mistake...ignore comment #3...sorry
Comment 5 Kai-Uwe Maetzel CLA 2004-06-07 12:56:34 EDT
We'd need an additional API method to free the state. No action for 3.0.
Comment 6 Tod Creasey CLA 2005-03-07 11:57:22 EST
Adding my name to the cc list as we are now tracking performance issues more
closely. Please remove the performance keyword if this is not a performance bug.
Comment 7 Dani Megert CLA 2005-04-21 14:49:15 EDT
*** Bug 92272 has been marked as a duplicate of this bug. ***
Comment 8 Eclipse Genie CLA 2020-04-21 17:55:56 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.