diff options
author | Vitaly Buka <vitalybuka@google.com> | 2017-11-01 00:55:52 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2017-11-01 00:55:52 +0000 |
commit | df00e89cdc39f0275f5b62396dea8f42ed233a13 (patch) | |
tree | f6c563a51ac4f4e45231a61e3be14d4f337036c5 /compiler-rt/test/fuzzer/TraceMallocThreadedTest.cpp | |
parent | 41450d583b5d9f5bdb2aba997d6d31d6a18ebdf3 (diff) | |
download | bcm5719-llvm-df00e89cdc39f0275f5b62396dea8f42ed233a13.tar.gz bcm5719-llvm-df00e89cdc39f0275f5b62396dea8f42ed233a13.zip |
Revert "[fuzzer] Fix threaded stack printing and nested mallocs"
Fails on darwin
Revert "[fuzzer] Script to detect unbalanced allocation in -trace_malloc output"
Needs previous one.
This reverts commit r317034, r317036.
llvm-svn: 317061
Diffstat (limited to 'compiler-rt/test/fuzzer/TraceMallocThreadedTest.cpp')
-rw-r--r-- | compiler-rt/test/fuzzer/TraceMallocThreadedTest.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/compiler-rt/test/fuzzer/TraceMallocThreadedTest.cpp b/compiler-rt/test/fuzzer/TraceMallocThreadedTest.cpp deleted file mode 100644 index 5603af344cb..00000000000 --- a/compiler-rt/test/fuzzer/TraceMallocThreadedTest.cpp +++ /dev/null @@ -1,22 +0,0 @@ -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. - -// Check that allocation tracing from different threads does not cause -// interleaving of stack traces. -#include <assert.h> -#include <cstddef> -#include <cstdint> -#include <cstring> -#include <thread> - -extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { - auto C = [&] { - volatile void *a = malloc(5639); - free((void *)a); - }; - std::thread T[] = {std::thread(C), std::thread(C), std::thread(C), - std::thread(C), std::thread(C), std::thread(C)}; - for (auto &X : T) - X.join(); - return 0; -} |