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)