-
huangs authored
MemoryAllocator stores a byte (enum AllocationType) to specify whether the allocated memory is in the heap or on disk. If this byte somehow gets corrupted then deallocation becomes problematic. This CL assigns non-trivial values to AllocationType enums, and calls LOG(FATAL) if corruption is found. This enables better diagnosis. Bug: 725437 Change-Id: Id29165e0d2d60c5ef53abcc5b9b4f3ad0cdd28fa Reviewed-on: https://chromium-review.googlesource.com/520884 Commit-Queue: Samuel Huang <huangs@chromium.org> Reviewed-by: Greg Thompson <grt@chromium.org> Cr-Commit-Position: refs/heads/master@{#476686}
160b06e6