diff options
| author | Josh Gao <jmgao@google.com> | 2018-11-12 13:44:38 -0800 | 
|---|---|---|
| committer | Josh Gao <jmgao@google.com> | 2018-11-12 20:54:39 -0800 | 
| commit | 10d079a37b538ae346d6287840b33bfc9b6cb8ab (patch) | |
| tree | 0b9cac7023da78457492b6a920ac3c74aa18e6c3 /libunwindstack/tests/MemoryFileTest.cpp | |
| 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
Diffstat (limited to 'libunwindstack/tests/MemoryFileTest.cpp')
0 files changed, 0 insertions, 0 deletions
