Disk errors, specifically disk-full conditions, can cause crashes when using memory mapped files. This is an issue, especially on Android with its limited storage, for persistent metrics and activity tracking (aka "breadcrumbs").
The PersistentMemoryManager is designed to be fault-tolerant so could be easily adapted to recognize and handle SIGBUS errors (or the equivalent Windows exception) in a reasonable way (i.e. doesn't crash).
Here's the design. Comments? (Use your @chromium account to access.)
https://docs.google.com/a/chromium.org/document/d/1pn_xc9JnSVUReIMM2awkMtBVkEFy1NjHCxzi3dq3D2g/edit?usp=sharing
Brian
bcw...@google.com-----------------------------------------------------------------------------------------
Treat someone as they are and they will remain that way.
Treat someone as they can be and they will become that way.