Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-4027 Enable direct byte buffers LruBlockCache
  3. HBASE-4289

Move spinlock to SingleSizeCache rather than the slab allocator.

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.92.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The spinlock shouldn't be implemented in the slab allocator, as we don't necessarily want to spinlock if we try to request too much memory. Instead, null should be returned, and we'll let the user of the slab allocator determine what it should do in an OOM situation.

        Attachments

        1. refactored.txt
          2 kB
          Li Pi
        2. refactor.diff
          2 kB
          Li Pi

          Activity

            People

            • Assignee:
              li Li Pi
              Reporter:
              li Li Pi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: