mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-05 21:45:37 +00:00
ICU-22992 madvise memory mapped files on Android.
This commit is contained in:
parent
d9d09db2a7
commit
ed69e5336d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue