commit | d3c5bebcb52a67cb06e7ab303eaf45f230c08b60 | [log] [tgz] |
---|---|---|
author | Vladimir Marko <vmarko@google.com> | Fri Apr 11 16:32:51 2014 +0100 |
committer | Vladimir Marko <vmarko@google.com> | Mon Apr 14 18:03:41 2014 +0100 |
tree | 85df477ba745b1e2c85ab1d167b0297236060f2f | |
parent | 043a7a6182870964021476484b1534106ff20600 [diff] |
Avoid allocating OatFile::OatClass on the heap. Avoid allocating a BitVector for OatFile::OatClass::bitmap_ with kOatClassSomeCompiled methods. That makes the OatClass copy-constructible as it doesn't own any memory. We use that in OatFile::OatDexFile::GetOatClass() to return the result by value thus avoiding one or two heap allocations per call. Change-Id: Ic7098109028a5b49e39ef626f877de86e732ed18