8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53adb4b commit 443c8c5Copy full SHA for 443c8c5
icu4c/source/common/umapfile.cpp
@@ -238,7 +238,12 @@ typedef HANDLE MemoryMap;
238
pData->pHeader=(const DataHeader *)data;
239
pData->mapAddr = data;
240
#if U_PLATFORM == U_PF_IPHONE || U_PLATFORM == U_PF_ANDROID
241
+ // Apparently supported from Android 23 and higher:
242
+ // https://github.com/ggml-org/llama.cpp/pull/3631
243
+ // Checking for the flag itself is safer than checking for __ANDROID_API__.
244
+# ifdef POSIX_MADV_RANDOM
245
posix_madvise(data, length, POSIX_MADV_RANDOM);
246
+# endif
247
#endif
248
return true;
249
}
0 commit comments