Commit 42499366 authored by Christopher Ferris's avatar Christopher Ferris
Browse files

Mark (deleted) maps as unreadable.

When running thread stress, or doing lots of local unwinds, ART
creates a lot of ashmem segments that exist and then are removed.
The problem is that the map caching for local unwinds is built on
the assumption that maps don't get deleted that often. Unfortunately,
these transient maps can cause crashes when, eventually, an unwind
tries to read from an address in a transient map.

To fix this, mark any map that ends in (deleted) that is not executable
and is not a shared library as unreadable.

Bug: 26807329
Change-Id: If06fe224c3b6f72776c96ce3e939cc755a2bf731
parent 9bfefed1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment