summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2012-05-12 12:33:10 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2012-05-12 12:33:10 +0000
commitd989be138678eb36c064890d1376ac9540149205 (patch)
tree73f17d4df5b7d21b09d057db9d0479528d398c31 /clang/lib/CodeGen/CodeGenModule.cpp
parent95d31bcba520ea6bcf4d2125ce2bfa4e2b386bd5 (diff)
downloadbcm5719-llvm-d989be138678eb36c064890d1376ac9540149205.tar.gz
bcm5719-llvm-d989be138678eb36c064890d1376ac9540149205.zip
Fix GetFrameNameByAddr hitting stale stack guards.
In the current implementation AsanThread::GetFrameNameByAddr scans the stack for a magic guard value to locate base address of the stack frame. This is not reliable, especially on ARM, where the code that stores this magic value has to construct it in a register from two small intermediates; this register can then end up stored in a random stack location in the prologue of another function. With this change, GetFrameNameByAddr scans the shadow memory for the signature of a left stack redzone instead. It is now possible to remove the magic from the instrumentation pass for additional performance gain. We keep it there for now just to make sure the new algorithm does not fail in some corner case. llvm-svn: 156710
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud