[jira] [Created] (IGNITE-2580) Investigate HashMap.Node[] allocations from GridDhtTxPrepareFuture.readyLocks(Iterable)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-2580) Investigate HashMap.Node[] allocations from GridDhtTxPrepareFuture.readyLocks(Iterable)

Anton Vinogradov (Jira)
Vladimir Ozerov created IGNITE-2580:
---------------------------------------

             Summary: Investigate HashMap.Node[] allocations from GridDhtTxPrepareFuture.readyLocks(Iterable)
                 Key: IGNITE-2580
                 URL: https://issues.apache.org/jira/browse/IGNITE-2580
             Project: Ignite
          Issue Type: Sub-task
          Components: cache
    Affects Versions: 1.5.0.final
            Reporter: Vladimir Ozerov
             Fix For: 1.6


*Problem*
GridDhtTxPrepareFuture is initialized with empty HashSet by default. When single lock is ready HashSet.add() is called causing immediate expansion of underlying HashMap table.

*Solution*
Do we really need fully-fledged hash set immediately? Probably we can optimize for single-lock case so that HashSet is not needed at all.



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