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

Bug 369339

Summary: performance problem with org.eclipse.emf.teneo.util.FieldUtil
Product: [Modeling] EMF Reporter: Krasimir Chobantonov <kchobantonov>
Component: TeneoAssignee: Martin Taal <mtaal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Krasimir Chobantonov CLA 2012-01-22 14:15:23 EST
Build Identifier: 1.2.0.v201112061230

Under heavy load we are getting stuck threads because FieldUtil is using Hashtable

private static final Hashtable<String, Object> fieldMethodCache = new Hashtable<String, Object>();

this needs to be changed to use

java.util.concurrent.ConcurrentHashMap

then multiple clients calling gets won't be blocked.

Reproducible: Always

Steps to Reproduce:
1. Under heavy load threads are waiting on FieldUtil.fieldMethodCache get operations
2.
3.
Comment 1 Martin Taal CLA 2012-01-26 13:11:54 EST
Pushed a solution, will be in next build.
Comment 2 Martin Taal CLA 2012-01-30 06:39:40 EST
Build is done and published