OSDN Git Service

Add MapAnonymous handling for null error_str
authorMathieu Chartier <mathieuc@google.com>
Wed, 24 Feb 2016 18:09:23 +0000 (10:09 -0800)
committerMathieu Chartier <mathieuc@google.com>
Wed, 24 Feb 2016 18:59:00 +0000 (10:59 -0800)
commit83723aedac536fd8a3cd6e1662dbd6260e576194
treeb49882ff8afa010fcdc06b4d58212f13ab646acf
parentc37a3eb8180d6488466961239eabc9ab0712bd05
Add MapAnonymous handling for null error_str

We use MapAnonymous with null error_str for app image loading when
we want to fail quickly. Also avoid doing CheckNonOverlapping in
CheckMapRequest if error_msg is null. The result from
CheckNonOverlapping is unused and CheckNonOverlapping is slow since
it creates a backtrace map.

Bug: 22858531
Bug: 26746779
Change-Id: I8605ec0b9d9ae554a4b74f2606fa7dd81ade9021
runtime/mem_map.cc
runtime/mem_map_test.cc