DescriptionAdd AlignedVector and use it for vector<MEMORY_BASIC_INFORMATION64>
MEMORY_BASIC_INFORMATION64 specifies an alignment of 16, but the
standard allocator used by containers doesn't honor this. Although 16
is the default alignment size used on Windows for x86_64, it's not for
32-bit x86. clang assumed that the alignment of the structure was as
declared, and used an SSE load sequence that required this alignment.
AlignedAllocator is a replacement for std::allocator that allows the
alignment to be specified. AlignedVector is an std::vector<> that uses
AlignedAllocator instead of std::allocator.
BUG=chromium:564691
R=scottmg@chromium.org
Committed: https://chromium.googlesource.com/crashpad/crashpad/+/f55d18ade6877134e87515d9e2fc332dd40dea19
Patch Set 1 #
Total comments: 2
Patch Set 2 : For checkin? #
Total comments: 2
Patch Set 3 : Address review feedback #
Messages
Total messages: 28 (6 generated)
|