[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-5866) ServiceRegistry is not thread-safe
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Mon Jan 24 16:18:05 EST 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bernard updated HHH-5866:
----------------------------------
Affects Version/s: (was: 4.0.0.Alpha1)
Fix Version/s: 4.0.0.Alpha1
> ServiceRegistry is not thread-safe
> ----------------------------------
>
> Key: HHH-5866
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5866
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Reporter: Emmanuel Bernard
> Fix For: 4.0.0.Alpha1
>
>
> ServiceRegistryImpl uses a HashMap which is not thread-safe.
> Services can be initialized lazily which means several threads can end up asking for the same service in //
> The implementation needs to guard against that.
> note that using a ConcurrentHashMap is not good enough as we probably don't want the same service type to be initialized multiple times.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list