You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mnemonic.apache.org by ga...@apache.org on 2023/08/02 18:16:59 UTC
[mnemonic] branch master updated: MNEMONIC-791: Find a wrong name of the memkind allocation in VMemKindService.
This is an automated email from the ASF dual-hosted git repository.
garyw 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 6e5d9c0 MNEMONIC-791: Find a wrong name of the memkind allocation in VMemKindService.
6e5d9c0 is described below
commit 6e5d9c0ac7902f05de05520ae818f292150935a2
Author: Katarina <ka...@gmail.com>
AuthorDate: Sun Jul 30 22:42:05 2023 +0000
MNEMONIC-791: Find a wrong name of the memkind allocation in VMemKindService.
---
.../org_apache_mnemonic_service_memory_internal_VMemKindServiceImpl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mnemonic-memory-services/mnemonic-memkind-pmem-service/src/main/native/org_apache_mnemonic_service_memory_internal_VMemKindServiceImpl.c b/mnemonic-memory-services/mnemonic-memkind-pmem-service/src/main/native/org_apache_mnemonic_service_memory_internal_VMemKindServiceImpl.c
index e9aab7f..f02de20 100644
--- a/mnemonic-memory-services/mnemonic-memkind-pmem-service/src/main/native/org_apache_mnemonic_service_memory_internal_VMemKindServiceImpl.c
+++ b/mnemonic-memory-services/mnemonic-memkind-pmem-service/src/main/native/org_apache_mnemonic_service_memory_internal_VMemKindServiceImpl.c
@@ -213,7 +213,7 @@ jlong JNICALL Java_org_apache_mnemonic_service_memory_internal_VMemKindServiceIm
pthread_rwlock_wrlock(&g_vmem_rwlock);
VMPool *pool;
size_t ret = -1;
- memkind_t *mkind = realloc(NULL, sizeof(memkind_t));
+ memkind_t *vmkind = realloc(NULL, sizeof(memkind_t));
const char* mpathname = (*env)->GetStringUTFChars(env, pathname, NULL);
if (NULL == mpathname) {
pthread_rwlock_unlock(&g_vmem_rwlock);