mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 22:26:06 +00:00
It should be possible to shrink a region already supervised by ScopedMmap, or in rare cases when ScopedMmap is supervising only a smaller portion of an overall larger region, increase the size of the region it supervises. This is now equivalent to the operation of base::mac::ScopedMachVM::reset(). The Reset() and ResetAddrLen() methods are upgraded from a void return to a bool return to indicate their success. Bug: crashpad:30 Test: crashpad_util_test ScopedMmap*.ResetAddrLen_* Change-Id: I564e154cd2387e8df3f83b416ecc1c83c9bcf71d Reviewed-on: https://chromium-review.googlesource.com/464286 Commit-Queue: Mark Mentovai <mark@chromium.org> Reviewed-by: Joshua Peraza <jperaza@chromium.org>