commit | 10d079a37b538ae346d6287840b33bfc9b6cb8ab | [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 | 0b9cac7023da78457492b6a920ac3c74aa18e6c3 | |
parent | 80dd70d285ffe562f458d02dadb4c006885b0489 [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