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

    • Sub-task
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.92.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: