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-622: Add Utils.getVolatileMemoryAllocatorService call back to Benches
Date Sat, 20 Feb 2021 04:39:26 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 401c487  MNEMONIC-622: Add Utils.getVolatileMemoryAllocatorService call back to Benches
401c487 is described below

commit 401c487932e849c3b7e1495c67fdf6c3a5dfa345
Author: Xiaojin Jiao <xj.jiao@gmail.com>
AuthorDate: Wed Feb 17 02:20:10 2021 -0800

    MNEMONIC-622: Add Utils.getVolatileMemoryAllocatorService call back to Benches
    
    Signed-off-by: Xiaojin Jiao <xj.jiao@gmail.com>
---
 .../src/main/java/org/apache/mnemonic/bench/DNCSTextFileSort.java      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/mnemonic-benches/mnemonic-sort-bench/src/main/java/org/apache/mnemonic/bench/DNCSTextFileSort.java
b/mnemonic-benches/mnemonic-sort-bench/src/main/java/org/apache/mnemonic/bench/DNCSTextFileSort.java
index 098dcfb..d796368 100644
--- a/mnemonic-benches/mnemonic-sort-bench/src/main/java/org/apache/mnemonic/bench/DNCSTextFileSort.java
+++ b/mnemonic-benches/mnemonic-sort-bench/src/main/java/org/apache/mnemonic/bench/DNCSTextFileSort.java
@@ -21,7 +21,6 @@ import org.apache.mnemonic.DurableType;
 import org.apache.mnemonic.EntityFactoryProxy;
 import org.apache.mnemonic.Utils;
 import org.apache.mnemonic.VolatileMemAllocator;
-import org.apache.mnemonic.service.memory.internal.SysVMemServiceImpl;
 import org.apache.mnemonic.collections.DurableSinglyLinkedList;
 import org.apache.mnemonic.collections.DurableSinglyLinkedListFactory;
 import org.apache.mnemonic.collections.SinglyLinkedNode;
@@ -53,7 +52,7 @@ public class DNCSTextFileSort implements TextFileSort {
     if (null != m_act) {
       clear();
     }
-    m_act = new VolatileMemAllocator(new SysVMemServiceImpl(), 1024 * 1024 * 1024 * 5,
+    m_act = new VolatileMemAllocator(Utils.getVolatileMemoryAllocatorService("sysvmem"),
1024 * 1024 * 1024 * 5,
         uri);
     String text = null;
     SinglyLinkedNode<Long> curnode = null, prvnode = null, node = null;


Mime
View raw message