Vladislav Pyatkov created IGNITE-18350:
------------------------------------------
Summary: Redesign two ciollection of lock modes to a bitset into
the heap lock manager
Key: IGNITE-18350
URL: https://issues.apache.org/jira/browse/IGNITE-18350
Project: Ignite
Issue Type: Improvement
Reporter: Vladislav Pyatkov
We have two collection that store lock modes:
{code}
HeapLockManager.WaiterImpl#locks
HeapLockManager.WaiterImpl#intendedLocks
{code}
That is done for continent way to implement all lock manager requirement. But
for optimization, we can do this through _BitSet_. The redesign is possible
because we have predefined lock modes (_LockMode_) and attempts to accesses to
the modes are bounded. The amount of attempts significantly less than MaxInt
value.
The optimization allows using less memory for lock on each entry.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)