You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladislav Pyatkov (Jira)" <ji...@apache.org> on 2022/12/07 14:22:00 UTC
[jira] [Created] (IGNITE-18350) Redesign two ciollection of lock modes to a bitset into the heap lock manager
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)