ICU-22992 madvise memory mapped files on Android.

This commit is contained in:
Almaz Mingaleev 2024-12-12 17:32:48 +00:00 committed by Markus Scherer
parent d9d09db2a7
commit ed69e5336d

View file

@ -237,7 +237,7 @@ typedef HANDLE MemoryMap;
pData->map = (char *)data + length;
pData->pHeader=(const DataHeader *)data;
pData->mapAddr = data;
#if U_PLATFORM == U_PF_IPHONE
#if U_PLATFORM == U_PF_IPHONE || U_PLATFORM == U_PF_ANDROID
posix_madvise(data, length, POSIX_MADV_RANDOM);
#endif
return true;