Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25010

`assert` on allocated buffer sizes before making calls to `Unsafe.copyMemory`

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.3.0
    • None
    • regionserver
    • None

    Description

      While investigating a SIGSEGV, I stumbled into our use of Unsafe.copyMemory for moving data between byte[]'s and/or DirectByteBuffer's. Calls to copyMemory use an Object, offset API that performs no validation what so ever. I'd like to add assert statements (disabled by default) before these memory copies.

      Attachments

        Issue Links

          Activity

            People

              ndimiduk Nick Dimiduk
              ndimiduk Nick Dimiduk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: