Commit 93507223 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

(cherry picked from commit 42499366)

Change-Id: I1587f1a523e108a59673c40798839abc2b068b6b
parent 276569a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment