Merge "Bound pending write events queue to avoid OOM"
am: 6cbd36f357

Change-Id: Ice70a28b24275e9463d2f3750fa39c0f5d811f00