Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

[PMEM-COMMON-8][POAE7-896]use clflush optimize version for clflush #9

Merged
merged 1 commit into from
Mar 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down