Bug 329479 - ScriptGroup cache grows monotonically
Summary: ScriptGroup cache grows monotonically
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.3 M4   Edit
Assignee: Michael Rennie CLA
QA Contact: Simon Kaegi CLA
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2010-11-04 15:29 EDT by Michael Rennie CLA
Modified: 2010-11-12 14:16 EST (History)
1 user (show)

See Also:


Attachments
fix (7.66 KB, patch)
2010-11-12 14:16 EST, Michael Rennie CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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