Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364000 - Deadlock in ManagedContainer
Summary: Deadlock in ManagedContainer
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.net4j (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-17 01:20 EST by Eike Stepper CLA
Modified: 2012-09-21 06:52 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Stepper CLA 2011-11-17 01:20:11 EST
Cloned from: 363997: Deadlock in ManagedContainer
https://bugs.eclipse.org/bugs/show_bug.cgi?id=363997

In getElement() there's large synchronized (elementRegistry) block that passes control out of scope. Especially element post processing or activation can lead to further container access by other threads --> deadlock
Comment 1 Eike Stepper CLA 2011-11-17 01:26:45 EST
commit b126d031442623646bdda3aaee3643b17552c6fc
Author: Eike Stepper <stepper@esc-net.de> 2011-11-17 07:26:13
Committer: Eike Stepper <stepper@esc-net.de> 2011-11-17 07:26:13
Parent: 3b4b70771a1912759226aba6e515b75ba33fb15b (Fixed unused warning)
Branches: streams/4.0-maintenance

[364000] Deadlock in ManagedContainer 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=364000
Comment 2 Eike Stepper CLA 2012-09-21 06:52:33 EDT
Closing.