llvm-project/compiler-rt/lib/dfsan
Peter Collingbourne 82ff058cf9 DFSan's set label function should avoid writing to the shadow memory when the write would not change the value in memory.
When writing a label to shadow memory, don't write if the value is already set to the value being written.  This dramatically reduces real memory consumption in programs with sparse use of labels.

Test Plan: It would be nice to test that unnecessary writes are skipped, but I do not see how a unit test could do this.

Patch by Sam Kerner!

Differential Revision: http://reviews.llvm.org/D4894

llvm-svn: 215961
2014-08-19 01:47:33 +00:00
..
scripts Update sanitizers' bash scripts. 2014-02-25 12:09:25 +00:00
CMakeLists.txt The newest versions of CMake require outputs of custom commands be in 2014-04-30 23:31:45 +00:00
Makefile.mk
dfsan.cc DFSan's set label function should avoid writing to the shadow memory when the write would not change the value in memory. 2014-08-19 01:47:33 +00:00
dfsan.h [dfsan] Fix the declaration of dfsan_add_label. 2014-06-04 17:54:51 +00:00
dfsan.syms.extra [dfsan] Add a syms file. 2013-08-29 22:49:00 +00:00
dfsan_custom.cc Add user-defined callback on write() calls. 2014-04-24 17:42:16 +00:00
dfsan_interceptors.cc [DFSan] Don't include public headers in dfsan runtime code 2013-11-17 09:41:47 +00:00
done_abilist.txt Add user-defined callback on write() calls. 2014-04-24 17:42:16 +00:00
libc_ubuntu1204_abilist.txt [dfsan] Initial set of custom functions and interceptors for libc. 2013-08-15 21:18:53 +00:00