[
https://issues.apache.org/jira/browse/TRINIDAD-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Scott O'Bryan resolved TRINIDAD-2196.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.1-core
> MenuUtils creates a large number of ThreadLocals
> ------------------------------------------------
>
> Key: TRINIDAD-2196
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2196
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 1.2.12-core
> Reporter: Stevan Malesevic
> Assignee: Scott O'Bryan
> Fix For: 2.0.1-core
>
> Attachments: jira-2196-1.2.12.6.2.patch, jira-2196.patch
>
>
> org.apache.myfaces.trinidad.menu.MenuUtils::loadBundle creates a lot of
> ThreadLocals object which then have a high CPU ipmact at the end of request
> when they need to be removed
> It is not clear:
> 1) Why ThreadLocal is needed at the first place here
> 2) Even if it is needed why create it before checking map for existence of
> bundle
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira