commit | 5b4708200c42552a795d19c758a5844dad434c93 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Nov 12 13:44:38 2018 -0800 |
committer | Josh Gao <jmgao@google.com> | Mon Nov 12 20:54:39 2018 -0800 |
tree | 1a2c6f71737f6fde186c6fe1ca82c47612c803bf | |
parent | d04b4523f42b5a20104d6356c416539409dfb784 [diff] |
adb: fix zero-initialization in Block. Iccfe3bd4fe45a0319bd9f23b8cbff4c7070c9f4d changed Block from using malloc to std::make_unique, which does the equivalent of `new char[size]()`, which value initializes the array members to 0. Switch to `reset(new char[size])` to avoid this costly initialization. Test: adb_benchmark Change-Id: I09aacb949a7bd4a946ce35a8ee65d1f451577b72