DescriptionMIPS32r2: Fix Chromium runtime crash
Crash is caused by ldxc1 instruction, which traps when double values are
not aligned on 8-byte boundaries. Problem was tracked to SkChunkAlloc which
produces pointers aligned on 4-byte boundaries leading to misalignment.
This change makes sure that SkChunkAlloc will produce pointers that are
aligned to 8 bytes.
Appropriate tests are added to tests/MemsetTest.cpp
TEST=Build Chromium with Clang and run on MIPS32r2 platform
TEST=./out/Debug/dm --match Memset
BUG=130022
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1849183004
Committed: https://skia.googlesource.com/skia/+/401e77cfe126eea1a12bd81410871fdb80739283
Patch Set 1 #Patch Set 2 : Added alignment tests and dox #Patch Set 3 : Putting back new line #Patch Set 4 : Changed test #
Total comments: 4
Patch Set 5 : Addressed comments #
Total comments: 2
Patch Set 6 : #
Messages
Total messages: 27 (7 generated)
|