You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Nick Dimiduk (Jira)" <ji...@apache.org> on 2020/09/10 20:16:00 UTC

[jira] [Created] (HBASE-25010) `assert` on allocated buffer sizes before making calls to `Unsafe.copyMemory`

Nick Dimiduk created HBASE-25010:
------------------------------------

             Summary: `assert` on allocated buffer sizes before making calls to `Unsafe.copyMemory`
                 Key: HBASE-25010
                 URL: https://issues.apache.org/jira/browse/HBASE-25010
             Project: HBase
          Issue Type: Improvement
          Components: regionserver
    Affects Versions: 2.3.0
            Reporter: Nick Dimiduk
            Assignee: Nick Dimiduk


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)