[infinispan-issues] [JBoss JIRA] (ISPN-3714) No need to wrap ClassLoaders in WeakReference in invocationContext implementations

Sanne Grinovero (JIRA) jira-events at lists.jboss.org
Thu Nov 14 20:09:05 EST 2013


Sanne Grinovero created ISPN-3714:
-------------------------------------

             Summary: No need to wrap ClassLoaders in WeakReference in invocationContext implementations
                 Key: ISPN-3714
                 URL: https://issues.jboss.org/browse/ISPN-3714
             Project: Infinispan
          Issue Type: Enhancement
            Reporter: Sanne Grinovero
            Assignee: Mircea Markus
             Fix For: 6.0.0.CR2, 6.0.0.Final


AbstractInvocationContext is having a reference to the ClassLoader but uses a weak reference.
Besides not being needed and being an unnecessary object allocation, I think it could also be dangerous if the CL "vanishes" during an in-flight operation which should be using it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list