mnemonic-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yz...@apache.org
Subject [mnemonic] branch master updated: MNEMONIC-623: Add Utils.getNonVolatileMemoryAllocatorService call back to Computing Service
Date Sun, 21 Feb 2021 04:24:58 GMT
This is an automated email from the ASF dual-hosted git repository.

yzhao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mnemonic.git


The following commit(s) were added to refs/heads/master by this push:
     new 85fda3b  MNEMONIC-623: Add Utils.getNonVolatileMemoryAllocatorService call back to
Computing Service
85fda3b is described below

commit 85fda3b1966c3ee9cefa8acab7ddb24288995cbe
Author: Xiaojin Jiao <xj.jiao@gmail.com>
AuthorDate: Wed Feb 17 02:33:25 2021 -0800

    MNEMONIC-623: Add Utils.getNonVolatileMemoryAllocatorService call back to Computing Service
    
    Signed-off-by: Xiaojin Jiao <xj.jiao@gmail.com>
---
 .../mnemonic/service/computing/DurableSinglyLinkedListNGPrintTest.java | 3 +--
 .../mnemonic/service/computing/DurableSinglyLinkedListNGSortTest.java  | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/mnemonic-computing-services/mnemonic-utilities-service/src/test/java/org/apache/mnemonic/service/computing/DurableSinglyLinkedListNGPrintTest.java
b/mnemonic-computing-services/mnemonic-utilities-service/src/test/java/org/apache/mnemonic/service/computing/DurableSinglyLinkedListNGPrintTest.java
index ddbaf5b..51f28c9 100644
--- a/mnemonic-computing-services/mnemonic-utilities-service/src/test/java/org/apache/mnemonic/service/computing/DurableSinglyLinkedListNGPrintTest.java
+++ b/mnemonic-computing-services/mnemonic-utilities-service/src/test/java/org/apache/mnemonic/service/computing/DurableSinglyLinkedListNGPrintTest.java
@@ -28,7 +28,6 @@ import org.apache.mnemonic.EntityFactoryProxyHelper;
 import org.apache.mnemonic.NonVolatileMemAllocator;
 import org.apache.mnemonic.EntityFactoryProxy;
 import org.apache.mnemonic.Utils;
-import org.apache.mnemonic.service.memory.internal.PMallocServiceImpl;
 import org.apache.mnemonic.DurableType;
 import org.apache.mnemonic.collections.DurableSinglyLinkedList;
 import org.apache.mnemonic.collections.DurableSinglyLinkedListFactory;
@@ -54,7 +53,7 @@ public class DurableSinglyLinkedListNGPrintTest {
   public void setUp() throws IOException {
     m_rand = Utils.createRandom();
     Files.deleteIfExists(Paths.get(uri));
-    m_act = new NonVolatileMemAllocator(new PMallocServiceImpl(), 1024 * 1024 * 1024,
+    m_act = new NonVolatileMemAllocator(Utils.getNonVolatileMemoryAllocatorService("pmalloc"),
1024 * 1024 * 1024,
         uri, true);
     cKEYCAPACITY = m_act.handlerCapacity();
     for (long i = 0; i < cKEYCAPACITY; ++i) {
diff --git a/mnemonic-computing-services/mnemonic-utilities-service/src/test/java/org/apache/mnemonic/service/computing/DurableSinglyLinkedListNGSortTest.java
b/mnemonic-computing-services/mnemonic-utilities-service/src/test/java/org/apache/mnemonic/service/computing/DurableSinglyLinkedListNGSortTest.java
index df0b2f5..06d9427 100644
--- a/mnemonic-computing-services/mnemonic-utilities-service/src/test/java/org/apache/mnemonic/service/computing/DurableSinglyLinkedListNGSortTest.java
+++ b/mnemonic-computing-services/mnemonic-utilities-service/src/test/java/org/apache/mnemonic/service/computing/DurableSinglyLinkedListNGSortTest.java
@@ -28,7 +28,6 @@ import org.apache.mnemonic.EntityFactoryProxyHelper;
 import org.apache.mnemonic.NonVolatileMemAllocator;
 import org.apache.mnemonic.EntityFactoryProxy;
 import org.apache.mnemonic.Utils;
-import org.apache.mnemonic.service.memory.internal.PMallocServiceImpl;
 import org.apache.mnemonic.DurableType;
 import org.apache.mnemonic.collections.DurableSinglyLinkedList;
 import org.apache.mnemonic.collections.DurableSinglyLinkedListFactory;
@@ -55,7 +54,7 @@ public class DurableSinglyLinkedListNGSortTest {
   public void setUp() throws IOException {
     m_rand = Utils.createRandom();
     Files.deleteIfExists(Paths.get(uri));
-    m_act = new NonVolatileMemAllocator(new PMallocServiceImpl(), 1024 * 1024 * 1024,
+    m_act = new NonVolatileMemAllocator(Utils.getNonVolatileMemoryAllocatorService("pmalloc"),
1024 * 1024 * 1024,
         uri, true);
     cKEYCAPACITY = m_act.handlerCapacity();
     for (long i = 0; i < cKEYCAPACITY; ++i) {


Mime
View raw message