[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 
Modify

CLDR Ticket #10990(new unknown)

Opened 6 weeks ago

Fix synchronize (threading)

Reported by: mark Owned by: anybody
Component: unknown Data Locale:
Phase: dsub Review:
Weeks: Data Xpath:
Xref:

Description

Noticed this code. I have a suspicion that our use of synchronization is a factor in suboptimal performance. Where we are synchronizing on too gross a level we will degrade performance.

public Level getLevel(String path) {

if (path == null) {

return Level.UNDETERMINED;

}
synchronized (lookup) { synchronize on the class, since the Matchers are changed during the matching process

Other options: we have some "kitchen sink" classes that could be split to reduce dependencies, and threading issues.

Attachments

View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.