Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331156 - [LTTng] Memory leak when selecting an experiment
Summary: [LTTng] Memory leak when selecting an experiment
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: LinuxTools (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Francois Chouinard CLA
QA Contact: Francois Chouinard CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-25 15:59 EST by Bernd Hufmann CLA
Modified: 2022-01-13 14:52 EST (History)
0 users

See Also:


Attachments
Fix for memory leak (1.91 KB, patch)
2010-11-25 16:16 EST, Bernd Hufmann CLA
fchouinard: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Hufmann CLA 2010-11-25 15:59:47 EST
Build Identifier: 

When selecting an experiment, the previous loaded experiment is not cleaned-up properly, which causes a memory leak. The size of the leak depends on the size of the previous loaded experiment (number events).

Reproducible: Always
Comment 1 Bernd Hufmann CLA 2010-11-25 16:16:17 EST
Created attachment 183888 [details]
Fix for memory leak

This patch fixes the memory leak. Before processing the new experiment, the old experiment will be clean-up and all relevant references in the LTTngTreeNode structure  (experiment and traces) will be removed. By doing that also the garbage collector can clean up the unused objects (including the checkpoints!).
Comment 2 Francois Chouinard CLA 2010-11-25 16:23:08 EST
Comment on attachment 183888 [details]
Fix for memory leak

Patch committed.
Comment 3 Francois Chouinard CLA 2010-11-25 16:23:30 EST
Bug fixed. Thanks Bernd.
Comment 4 Francois Chouinard CLA 2011-07-22 14:55:10 EDT
Delivered with 0.7