You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Brian Demers (JIRA)" <ji...@apache.org> on 2016/07/15 15:16:20 UTC
[jira] [Closed] (SHIRO-498) ThreadLocal should not be created when
not necessary
[ https://issues.apache.org/jira/browse/SHIRO-498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Demers closed SHIRO-498.
------------------------------
Assignee: (was: Les Hazlewood)
> ThreadLocal should not be created when not necessary
> ----------------------------------------------------
>
> Key: SHIRO-498
> URL: https://issues.apache.org/jira/browse/SHIRO-498
> Project: Shiro
> Issue Type: Improvement
> Affects Versions: 1.2.2
> Reporter: Jochen Kemnade
> Labels: patch
> Fix For: 1.2.4
>
> Attachments: 0001-don-t-create-ThreadLocals-when-not-needed.patch
>
>
> org.apache.shiro.util.ThreadContext.getValue(Object) and org.apache.shiro.util.ThreadContext.remove(Object) initialze the TheadLocal unnecessarily via initialValue(). Both methods should return without creating the ThreadLocal to avoid potential memory leaks.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)