Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313932 - OSGi context creates duplicate trackable computations
Summary: OSGi context creates duplicate trackable computations
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: E4 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-21 11:55 EDT by Oleg Besedin CLA
Modified: 2012-12-13 15:00 EST (History)
1 user (show)

See Also:


Attachments
Patch (6.80 KB, patch)
2010-05-21 11:55 EDT, Oleg Besedin CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Besedin CLA 2010-05-21 11:55:19 EDT
Created attachment 169512 [details]
Patch 

On each lookup OSGi context creates a new RunAndTrack instance. As a result we end up with a large number (1000's) of RunAndTracks. Moreover, the single purpose of those RAT instances is to be notified when the originating context is disposed. (To keep RAT valid OSGi context creates an extra dependency on context's parent.)

The patch creates a "notify on disposal" listener instead that takes care of eliminating duplicates.
Comment 1 Oleg Besedin CLA 2010-05-21 11:55:57 EDT
Patch applied to CVS Head.