Repository: incubator-mnemonic
Updated Branches:
  refs/heads/master 35383420f -> bb7efb32e


MNEMONIC-122: Undefined function in vmem-service


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

Branch: refs/heads/master
Commit: bb7efb32eb75584042f20411ddfa33489b7e995e
Parents: 3538342
Author: Wang, Gang(Gary) <gang1.w...@intel.com>
Authored: Wed Sep 21 22:04:31 2016 -0700
Committer: Wang, Gang(Gary) <gang1.w...@intel.com>
Committed: Wed Sep 21 22:04:31 2016 -0700

----------------------------------------------------------------------
 .../mnemonic/service/memoryservice/internal/VMemServiceImpl.java  | 3 ++-
 ...ache_mnemonic_service_memoryservice_internal_VMemServiceImpl.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/bb7efb32/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/java/org/apache/mnemonic/service/memoryservice/internal/VMemServiceImpl.java
----------------------------------------------------------------------
diff --git 
a/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/java/org/apache/mnemonic/service/memoryservice/internal/VMemServiceImpl.java
 
b/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/java/org/apache/mnemonic/service/memoryservice/internal/VMemServiceImpl.java
index 50ca72d..ff9474c 100644
--- 
a/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/java/org/apache/mnemonic/service/memoryservice/internal/VMemServiceImpl.java
+++ 
b/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/java/org/apache/mnemonic/service/memoryservice/internal/VMemServiceImpl.java
@@ -125,7 +125,8 @@ public class VMemServiceImpl implements 
VolatileMemoryAllocatorService {
 
   @Override
   public long getBaseAddress(long id) {
-    return ngetBaseAddress(id);
+    throw new UnsupportedOperationException("getBaseAddress Operation 
Unsupported.");
+    //return ngetBaseAddress(id);
   }
 
   protected native long ninit(long capacity, String uri, boolean isnew);

http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/bb7efb32/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/native/org_apache_mnemonic_service_memoryservice_internal_VMemServiceImpl.c
----------------------------------------------------------------------
diff --git 
a/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/native/org_apache_mnemonic_service_memoryservice_internal_VMemServiceImpl.c
 
b/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/native/org_apache_mnemonic_service_memoryservice_internal_VMemServiceImpl.c
index c25777d..6f97d54 100644
--- 
a/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/native/org_apache_mnemonic_service_memoryservice_internal_VMemServiceImpl.c
+++ 
b/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/native/org_apache_mnemonic_service_memoryservice_internal_VMemServiceImpl.c
@@ -192,7 +192,7 @@ jlong JNICALL 
Java_org_apache_mnemonic_service_memoryservice_internal_VMemServic
     jobject this, jlong id) {
   pthread_rwlock_rdlock(&g_vmem_rwlock);
   void *md = *(g_vmp_ptr + id);
-  jlong ret = (long) b_addr(md);
+  jlong ret = 0L;
   pthread_rwlock_unlock(&g_vmem_rwlock);
   return ret;
 }

Reply via email to