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

Bug 329479

Summary: ScriptGroup cache grows monotonically
Product: [WebTools] JSDT Reporter: Michael Rennie <Michael_Rennie>
Component: DebugAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact: Simon Kaegi <simon_kaegi>
Severity: normal    
Priority: P3 CC: thatnitind
Version: 3.3Keywords: performance
Target Milestone: 3.3 M4   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
fix none

Description Michael Rennie CLA 2010-11-04 15:29:43 EDT
code from HEAD

The script group in the debug view shows all of the loaded scripts at any given moment [OK], the problem is that if the context that loaded the script is exited, the scripts associated with it are not removed from the cache [BAD]. The net result is the ever increasing size of the cache (until the launch is terminated), and script actions that fail (like open source, since the backing context / script no longer exists).

We should look at GC'ing scripts from the cache when the associated context is removed. It would be best if the underlying model (JSDI) could just tell the debug model to refresh the cache.
Comment 1 Michael Rennie CLA 2010-11-12 14:16:19 EST
Created attachment 183030 [details]
fix

patch adds in a handler to remove scripts associated with a given context when that context is exited
Comment 2 Michael Rennie CLA 2010-11-12 14:16:42 EST
applied to HEAD