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

Bug 313932

Summary: OSGi context creates duplicate trackable computations
Product: z_Archived Reporter: Oleg Besedin <ob1.eclipse>
Component: E4Assignee: Project Inbox <e4.runtime-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ob1.eclipse
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch none

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.