commit | 50b2928501fe489c108472e7648ec98cdca62e10 | [log] [tgz] |
---|---|---|
author | Hiroshi Yamauchi <yamauchi@google.com> | Tue Jul 30 13:58:37 2013 -0700 |
committer | Hiroshi Yamauchi <yamauchi@google.com> | Mon Aug 05 11:38:01 2013 -0700 |
tree | 03da5ab1d5b33ce1503d6bcbcfab153fa70938df | |
parent | 6447919b5ee8d34c4767f908c7cd7223c224544c [diff] |
Improve the allocation speed. - Improves the Ritz MemAllocTest benchmark result by ~500 ms (or ~5%) on Nexus 4. - Move the memset() call that zeroes the allocated memory out of the lock region. - De-virtualize/Inline the allocation call chains into Heap::AllocObject(). - Turn Heap::measure_allocation_time_ into a static const variable. - Surround the VerifyObject() call with kIsDebugBuild. Bug: 9986565 Change-Id: Ib70b6d051a80ec329788b30256565561f031da2a