From e366d5c82445253265b067443384eb0c26eae591 Mon Sep 17 00:00:00 2001 From: Xie Qi Date: Thu, 11 Mar 2021 11:21:43 +0800 Subject: [PATCH] [PMEM-COMMON-8][POAE7-896]use clflush optimize version for clflush --- .../com_intel_oap_common_unsafe_PersistentMemoryPlatform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/native/memkind/com_intel_oap_common_unsafe_PersistentMemoryPlatform.cpp b/src/native/memkind/com_intel_oap_common_unsafe_PersistentMemoryPlatform.cpp index fa46fd9d..bc5b6429 100644 --- a/src/native/memkind/com_intel_oap_common_unsafe_PersistentMemoryPlatform.cpp +++ b/src/native/memkind/com_intel_oap_common_unsafe_PersistentMemoryPlatform.cpp @@ -157,7 +157,7 @@ JNIEXPORT void JNICALL Java_com_intel_oap_common_unsafe_PersistentMemoryPlatform while (sz >= BYTES_PER_CLFLUSH) { memcpy(dest, src, BYTES_PER_CLFLUSH); - _mm_clflush(dest); + _mm_clflushopt(dest); dest += BYTES_PER_CLFLUSH; src += BYTES_PER_CLFLUSH; sz -= BYTES_PER_CLFLUSH;