Skip to content

Commit

Permalink
ICU-22992 madvise memory mapped files on Android.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yqwed authored and markusicu committed Jan 3, 2025
1 parent d9d09db commit ed69e53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icu4c/source/common/umapfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ed69e53

Please sign in to comment.