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

Bug 330118

Summary: Reduce number of RaTs created on context update
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: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Oleg Besedin CLA 2010-11-12 11:56:24 EST
Created attachment 183012 [details]
Patch

At present we create new RaT on every context update notification. Because of the way listeners are registered, the "extra" RaTs gets coalesced with the "initial" RaTs and, in the long run, we don't end up with leaks.

That, however, is less than ideal as each context update creates new RaT for listeners which gets garbage collected.

The attached patch changes that so that context injection creates RaTs only on the initial processing of the injection requestor.

The patch also fixed bug in @Active processing.
Comment 1 Oleg Besedin CLA 2010-11-12 11:57:48 EST
Patch applied to CVS Head.