Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365247 - [TMF] Missing dispose of TmfContext in time chart view
Summary: [TMF] Missing dispose of TmfContext in time chart view
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: LinuxTools (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Francois Chouinard CLA
QA Contact: Francois Chouinard CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-30 16:40 EST by Patrick Tasse CLA
Modified: 2022-01-13 14:52 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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