diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-05-27 12:37:52 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-05-27 12:37:52 +0000 |
| commit | 567e516015f88848da1c0720bed49efa95a0701e (patch) | |
| tree | 976bb91519eebc58c87c6148e2072f64a12a3e81 /compiler-rt/lib/sanitizer_common/sanitizer_common.cc | |
| parent | a2c2a4faa0ff98e2e6aad76a643933d50e77ebe9 (diff) | |
| download | bcm5719-llvm-567e516015f88848da1c0720bed49efa95a0701e.tar.gz bcm5719-llvm-567e516015f88848da1c0720bed49efa95a0701e.zip | |
[asancov] Write coverage directly to a memory-mapped file.
This way does not require a __sanitizer_cov_dump() call. That's
important on Android, where apps can be killed at arbitrary time.
We write raw PCs to disk instead of module offsets; we also write
memory layout to a separate file. This increases dump size by the
factor of 2 on 64-bit systems.
llvm-svn: 209653
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_common.cc')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_common.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.cc b/compiler-rt/lib/sanitizer_common/sanitizer_common.cc index 305056e2472..05bd8764c61 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.cc @@ -263,11 +263,6 @@ void DecreaseTotalMmap(uptr size) { atomic_fetch_sub(&g_total_mmaped, size, memory_order_relaxed); } -static void (*sandboxing_callback)(); -void SetSandboxingCallback(void (*f)()) { - sandboxing_callback = f; -} - } // namespace __sanitizer using namespace __sanitizer; // NOLINT @@ -300,13 +295,6 @@ void __sanitizer_set_report_path(const char *path) { } } -void NOINLINE -__sanitizer_sandbox_on_notify(__sanitizer_sandbox_arguments *args) { - PrepareForSandboxing(args); - if (sandboxing_callback) - sandboxing_callback(); -} - void __sanitizer_report_error_summary(const char *error_summary) { Printf("%s\n", error_summary); } |

