Limit timestamp map size in ArcFileSystemWatcher
The unlimited map size is potentially causing OOM (and there are evidence that it might caused OOM). Here, the size of the map is limited to the max size of inotify event queue since it we are degrading our support for when we have too files more than the inotify events anyway. BUG=1134755 TEST=Decrease the limit and print the map size to see the capping work. Change-Id: Ifcaecde655afaf2d44ab48cef5701b9ee7fca8eb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2456726Reviewed-by:Yusuke Sato <yusukes@chromium.org> Commit-Queue: Risan <risan@chromium.org> Cr-Commit-Position: refs/heads/master@{#815010}
Showing
Please register or sign in to comment