Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330118 - Reduce number of RaTs created on context update
Summary: Reduce number of RaTs created on context update
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: E4 (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-12 11:56 EST by Oleg Besedin CLA
Modified: 2012-12-13 15:00 EST (History)
1 user (show)

See Also:


Attachments
Patch (17.72 KB, patch)
2010-11-12 11:56 EST, 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-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.