Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369339 - performance problem with org.eclipse.emf.teneo.util.FieldUtil
Summary: performance problem with org.eclipse.emf.teneo.util.FieldUtil
Status: RESOLVED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Teneo (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Taal CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-22 14:15 EST by Krasimir Chobantonov CLA
Modified: 2012-01-30 06:39 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 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