Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-6719

Get rid of noop segment lock-unlock in PageMemoryImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.4
    • None
    • None

    Description

      We have the following pattern in PageMemoryImpl#stop():

      volatile boolean closed;
      
      ...
      closed = true;
      writeLock.lock();
      writeLock.unlock();
      

      An empty lock/unlock pair can be eliminated, so the code must be changed and the flag should be moved to the segment class.

      Attachments

        Activity

          People

            agoncharuk Alexey Goncharuk
            agoncharuk Alexey Goncharuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: