Repository: ignite
Updated Branches:
  refs/heads/ignite-1.6.10-hadoop-debug 6e62ae1b8 -> c173c1c74


Fix.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/c173c1c7
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/c173c1c7
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/c173c1c7

Branch: refs/heads/ignite-1.6.10-hadoop-debug
Commit: c173c1c744a95d5bd82ab4924405ce8582fa03a2
Parents: 6e62ae1
Author: devozerov <[email protected]>
Authored: Thu Nov 17 18:58:43 2016 +0300
Committer: devozerov <[email protected]>
Committed: Thu Nov 17 18:58:43 2016 +0300

----------------------------------------------------------------------
 .../ignite/internal/util/offheap/unsafe/GridUnsafeMemory.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/c173c1c7/modules/core/src/main/java/org/apache/ignite/internal/util/offheap/unsafe/GridUnsafeMemory.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/util/offheap/unsafe/GridUnsafeMemory.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/util/offheap/unsafe/GridUnsafeMemory.java
index aac91ed..3e9de6e 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/util/offheap/unsafe/GridUnsafeMemory.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/util/offheap/unsafe/GridUnsafeMemory.java
@@ -609,7 +609,7 @@ public class GridUnsafeMemory {
     public byte[] readBytes(long ptr, byte[] arr, int off, int len) {
         if (len <= 16) {
             for (int i = 0; i < len; i++)
-                GridUnsafe.putByte(arr, off + i, GridUnsafe.getByte(ptr + i));
+                GridUnsafe.putByte(arr, GridUnsafe.BYTE_ARR_OFF + off + i, 
GridUnsafe.getByte(ptr + i));
         }
         else
             GridUnsafe.copyMemory(null, ptr, arr, GridUnsafe.BYTE_ARR_OFF + 
off, len);

Reply via email to