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)