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

Bug 365247

Summary: [TMF] Missing dispose of TmfContext in time chart view
Product: z_Archived Reporter: Patrick Tasse <patrick.tasse>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Patrick Tasse CLA 2011-11-30 16:40:49 EST
In the TimeChartView DecorateThread private class, a TmfContext is created for small amounts of work. When possible the context is reused, but in some cases the context is replaced and the old context is left for garbage collection.

In some extensions, the TmfContext can own limited system resources such as a file descriptor. If the DecorateThread uses too many context in a short time, the system can run out of file descriptors before the garbage collector has time to dispose of the context.

The solution is to dispose the old context whenever it is replaced by a new one, and dispose the last context at the end of the thread execution.
Comment 1 Patrick Tasse CLA 2011-12-01 12:56:57 EST
Pushed to master branch.

commit bec90af73a494aceeb17256235b847b9d851480f
Comment 2 Francois Chouinard CLA 2012-03-26 14:00:39 EDT
Delivered in 0.10.0
Comment 3 Francois Chouinard CLA 2012-03-26 14:00:53 EDT
Delivered in 0.10.0