You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ds...@apache.org on 2016/03/05 01:51:35 UTC

[35/38] incubator-geode git commit: renamed allocateChunk to allocateOffHeapStoredObject

renamed allocateChunk to allocateOffHeapStoredObject


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/4640d151
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/4640d151
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/4640d151

Branch: refs/heads/feature/GEODE-982
Commit: 4640d151549ff4ee438b5e054fdbaa96f7049f98
Parents: 0740564
Author: Darrel Schneider <ds...@pivotal.io>
Authored: Fri Mar 4 15:43:18 2016 -0800
Committer: Darrel Schneider <ds...@pivotal.io>
Committed: Fri Mar 4 15:43:18 2016 -0800

----------------------------------------------------------------------
 .../gemfire/internal/offheap/SimpleMemoryAllocatorImpl.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/4640d151/geode-core/src/main/java/com/gemstone/gemfire/internal/offheap/SimpleMemoryAllocatorImpl.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/internal/offheap/SimpleMemoryAllocatorImpl.java b/geode-core/src/main/java/com/gemstone/gemfire/internal/offheap/SimpleMemoryAllocatorImpl.java
index be7a88b..209a4a4 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/internal/offheap/SimpleMemoryAllocatorImpl.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/internal/offheap/SimpleMemoryAllocatorImpl.java
@@ -293,7 +293,7 @@ public class SimpleMemoryAllocatorImpl implements MemoryAllocator {
     }
   }
 
-  private OffHeapStoredObject allocateChunk(int size) {
+  private OffHeapStoredObject allocateOffHeapStoredObject(int size) {
     OffHeapStoredObject result = this.freeList.allocate(size);
     int resultSize = result.getSize();
     stats.incObjects(1);
@@ -309,7 +309,7 @@ public class SimpleMemoryAllocatorImpl implements MemoryAllocator {
   @Override
   public StoredObject allocate(int size) {
     //System.out.println("allocating " + size);
-    OffHeapStoredObject result = allocateChunk(size);
+    OffHeapStoredObject result = allocateOffHeapStoredObject(size);
     //("allocated off heap object of size " + size + " @" + Long.toHexString(result.getMemoryAddress()), true);
     return result;
   }
@@ -332,7 +332,7 @@ public class SimpleMemoryAllocatorImpl implements MemoryAllocator {
     if (addr != 0L) {
       return new TinyStoredObject(addr);
     }
-    OffHeapStoredObject result = allocateChunk(v.length);
+    OffHeapStoredObject result = allocateOffHeapStoredObject(v.length);
     //debugLog("allocated off heap object of size " + v.length + " @" + Long.toHexString(result.getMemoryAddress()), true);
     //debugLog("allocated off heap object of size " + v.length + " @" + Long.toHexString(result.getMemoryAddress()) +  "chunkSize=" + result.getSize() + " isSerialized=" + isSerialized + " v=" + Arrays.toString(v), true);
     result.setSerializedValue(v);