OSDN Git Service

Add optimization for LOW_4G allocator
authorMathieu Chartier <mathieuc@google.com>
Thu, 4 Jun 2015 20:42:14 +0000 (13:42 -0700)
committerMathieu Chartier <mathieuc@google.com>
Thu, 4 Jun 2015 22:16:44 +0000 (15:16 -0700)
commit1c8bef4a71612f10b89b102434f70de5a127cc74
tree59d19d274255777e41cba0034ac8c109261e754c
parentc991403cd8b869e4a38c11c6a58223b82b89a1b2
Add optimization for LOW_4G allocator

The optimization uses the maps_ field to skip over regions which we
know wont be large enough for the request.

Reduces time to create heap from 500-700ms to 100ms on N9.

Bug: 20727525

Change-Id: I4fa92d58c2e135ba31a03ababff46669089bb542
runtime/mem_map.cc