summaryrefslogtreecommitdiff
path: root/debuggerd/debuggerd_test.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2020-06-24 13:51:04 -0700
committerTom Cherry <tomcherry@google.com>2020-06-24 16:19:28 -0700
commitb6cb992cf35b78312471801772622c76cbc64abc (patch)
tree54f884807b98e7c0c4cb600cddd841853919f2b0 /debuggerd/debuggerd_test.cpp
parentb07e339b537162d090db7da08fd864dee1895344 (diff)
logd: replace std::vector<uint8_t> in SerializedLogChunk
Turns out std::vector::resize() and std::vector::clear() don't actually deallocate any memory. std::vector::shrink_to_fit() can be used for this but isn't a 'guarantee'. Instead of trying to get std::vector to play nice, this change replaces std::vector<uint8_t> with std::unique_ptr<uint8_t[]>, which is more accurate to how I'm using this memory anyway. Test: logging unit tests Change-Id: I9638e90bbf50bcf316c5aa172c8278ea945d27e7
Diffstat (limited to 'debuggerd/debuggerd_test.cpp')
0 files changed, 0 insertions, 0 deletions