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 19:30:09 +0000 (11:30 -0800)
commit486932a225b21ffce9ba8557990d5ad4d135963d
tree7d4e49dbade5aeda809a9c9a38ba8b9331005d54
parentd2cb6e64dc3a0370fe0862b2a113fb151904be89
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

(cherry picked from commit 83723aedac536fd8a3cd6e1662dbd6260e576194)

Change-Id: I0ff03a778b36303aa1e256fe7238dece5b3bbfab
runtime/mem_map.cc
runtime/mem_map_test.cc