ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-2234) GridCacheMvccManager.contextReset() generates garbage.
Date Tue, 22 Dec 2015 14:58:46 GMT
Vladimir Ozerov created IGNITE-2234:
---------------------------------------

             Summary: GridCacheMvccManager.contextReset() generates garbage.
                 Key: IGNITE-2234
                 URL: https://issues.apache.org/jira/browse/IGNITE-2234
             Project: Ignite
          Issue Type: Sub-task
          Components: general
    Affects Versions: ignite-1.4
            Reporter: Vladimir Ozerov
            Assignee: Vladimir Ozerov
             Fix For: 1.6


GridCacheMvccManager.contextReset() method operates on a thread-local LinkedList. Only two
operations are used: "add" and "getLast". 
Once cache op is finished, it is reset - new LinkedList is created. 

Proposed solution:
1) Use TLS (array + index) instead of LinkedList;
2) Reset = (set index to 0) + (nullify all previous elements). The latter is needed because
GridCacheMvccCandidate migth contain references to cache entries.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message