You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2009/08/15 20:24:00 UTC

[jira] Resolved: (WW-3201) thread contention on OGNL ClassCasheImpl

     [ https://issues.apache.org/struts/browse/WW-3201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-3201.
---------------------------------

    Resolution: Won't Fix

we can't make changes in ognl

> thread contention on OGNL ClassCasheImpl
> ----------------------------------------
>
>                 Key: WW-3201
>                 URL: https://issues.apache.org/struts/browse/WW-3201
>             Project: Struts 2
>          Issue Type: Sub-task
>            Reporter: Musachy Barroso
>            Assignee: Musachy Barroso
>             Fix For: Future
>
>
> OGNL has a custom map implementation(ognl.internal.ClassCacheImpl) where it keeps a cache from Class->Object. In OgnlRuntime, there are several caches that use this implementation and OgnlRuntime synchronizes on it often. 
> Suggested solution: replace the internal implementation of a map in ClassCacheImpl  by ConcurrentHashMap. Because these caches are mostly readonly, this will reduce thread contention. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.