Skip to content

Remove preference listener if manager is shut down or project is deleted#1707

Merged
laeubi merged 1 commit intoeclipse-pde:masterfrom
ptziegler:cleanup-listeners-in-workspace-model-manager
Mar 27, 2025
Merged

Remove preference listener if manager is shut down or project is deleted#1707
laeubi merged 1 commit intoeclipse-pde:masterfrom
ptziegler:cleanup-listeners-in-workspace-model-manager

Conversation

@ptziegler
Copy link
Copy Markdown
Contributor

The PreferenceChangeListener that is added when a project is created/opened or when the plugin is started needs to be removed when the project is deleted, in order to make it eligible for garbage collection.

The PreferenceChangeListener that is added when a project is
created/opened or when the plugin is started needs to be removed when
the project is deleted, in order to make it eligible for garbage
collection.
@ptziegler
Copy link
Copy Markdown
Contributor Author

The memory leak that is caused by this as seen in eclipse-tycho/tycho#4906

image

@github-actions
Copy link
Copy Markdown

Test Results

   285 files  ±0     285 suites  ±0   49m 55s ⏱️ + 1m 3s
 3 608 tests ±0   3 532 ✅ ±0   76 💤 ±0  0 ❌ ±0 
11 016 runs  ±0  10 785 ✅ ±0  231 💤 ±0  0 ❌ ±0 

Results for commit 06b4483. ± Comparison against base commit 917d9a0.

@ptziegler
Copy link
Copy Markdown
Contributor Author

I'm fairly certain the new Maven warnings are unrelated...

@laeubi laeubi merged commit 4cb81af into eclipse-pde:master Mar 27, 2025
16 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants