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-606: Replace the Utils.getNonVolatileMemoryAllocatorService call from Computing Service
Date Sun, 07 Feb 2021 02:19:24 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 8d98d83  MNEMONIC-606: Replace the Utils.getNonVolatileMemoryAllocatorService call
from Computing Service
8d98d83 is described below

commit 8d98d837ac9554449d1f8328a41a7206a85d673c
Author: Xiaojin Jiao <xj.jiao@gmail.com>
AuthorDate: Thu Feb 4 20:43:22 2021 -0800

    MNEMONIC-606: Replace the Utils.getNonVolatileMemoryAllocatorService call from 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, 4 insertions(+), 2 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 51f28c9..ddbaf5b 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,6 +28,7 @@ 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;
@@ -53,7 +54,7 @@ public class DurableSinglyLinkedListNGPrintTest {
   public void setUp() throws IOException {
     m_rand = Utils.createRandom();
     Files.deleteIfExists(Paths.get(uri));
-    m_act = new NonVolatileMemAllocator(Utils.getNonVolatileMemoryAllocatorService("pmalloc"),
1024 * 1024 * 1024,
+    m_act = new NonVolatileMemAllocator(new PMallocServiceImpl(), 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 06d9427..df0b2f5 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,6 +28,7 @@ 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 +55,7 @@ public class DurableSinglyLinkedListNGSortTest {
   public void setUp() throws IOException {
     m_rand = Utils.createRandom();
     Files.deleteIfExists(Paths.get(uri));
-    m_act = new NonVolatileMemAllocator(Utils.getNonVolatileMemoryAllocatorService("pmalloc"),
1024 * 1024 * 1024,
+    m_act = new NonVolatileMemAllocator(new PMallocServiceImpl(), 1024 * 1024 * 1024,
         uri, true);
     cKEYCAPACITY = m_act.handlerCapacity();
     for (long i = 0; i < cKEYCAPACITY; ++i) {


Mime
View raw message