• Home
  • History
  • Annotate
  • only in /external/compiler-rt/lib/sanitizer_common/tests/
History log of /external/compiler-rt/lib/sanitizer_common/tests/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ee10ce19fb077353b87c0477e140ea9b81c35e21 03-Jan-2018 Yi Kong <yikong@google.com> Ignore new compiler warnings

Clang 6.0.1 update introduced a number of new warnings, failing
werror build. Ignore the -Wvisibility, -Wincompatible-pointer-types,
-Wformat warnings for external/compiler-rt.

Test: m checkbuild
Change-Id: I56ac95dbea43012949786625952d9a395addae84
ndroid.bp
9554d7d710c637a3d35fc3d6ed11144c5fae5f8f 29-Sep-2017 Chih-Hung Hsieh <chh@google.com> Use -Werror in external/compiler-rt

* -Wall and -Werror are moved from cppflags to cflags.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I91fb1d1717021994cddc9846ddf6292b9fefa719
ndroid.bp
49818f7cf58d31fe3acaf04baeb06ba0cd7c25f6 29-Sep-2017 Dan Willemsen <dwillemsen@google.com> Remove default libraries

libdl is part of system_shared_libs now. -ldl -lpthread -lm are now defaults
for host_ldlibs on Linux and Darwin. -lrt is a default for host_ldlibs on
Linux.

Test: m host
Change-Id: I43e3184d118df4a2b4a593750a72a3e5cac2be15
Exempt-From-Owner-Approval: build system cleanup
ndroid.bp
c58a43648cd6121c51a2e795a28e2ef90d7813e6 20-Sep-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master compiler-rt for rebase to r275480

Bug: http://b/31320715

This merges commit db963a21048fd7242daae74666cb221f796f33c3 from
aosp/dev.

Test: Build AOSP and run RenderScript tests (host tests for slang and
libbcc, RsTest, CTS)

Change-Id: I8bdd651c1759c4306d62c34edec1d8d9536c9715
MakeLists.txt
anitizer_allocator_test.cc
anitizer_allocator_testlib.cc
anitizer_flags_test.cc
anitizer_ioctl_test.cc
anitizer_linux_test.cc
anitizer_posix_test.cc
anitizer_printf_test.cc
anitizer_procmaps_test.cc
anitizer_pthread_wrappers.h
anitizer_stacktrace_test.cc
anitizer_symbolizer_test.cc
anitizer_thread_registry_test.cc
711c66ac3f579a681847bc00af9078e14b963449 09-Sep-2016 Dan Albert <danalbert@google.com> Use exported gtest headers.

Test: mm
Bug: http://b/16574165
Change-Id: Id05f3190bba12d73dff99b0293eba2355f3652e9
ndroid.bp
0f311a25347d85725e44ae5561fbd4d39bb1b50b 27-May-2016 Colin Cross <ccross@android.com> Remove deprecated Android.mk files

These directories all have Android.bp files that are always used now,
delete the Android.mk files.

Change-Id: I55909868bc16f92819dc582635a782557fe0b5a2
ndroid.mk
fbdb443fc5f02ecbd2ac52df5f60bd3d0ee3c10f 07-Apr-2016 Colin Cross <ccross@android.com> Build sanitizer libraries

Change-Id: I4a67cc82f6d5aa80fdff286582ba84b68fe09e22
ndroid.bp
87eeeb845271a70e83427f5dbc05d60506b486c6 26-Apr-2016 Colin Cross <ccross@android.com> Revert "Build sanitizer libraries"

This reverts commit 37bc918f0333d56cc87b5bf428cb629cb5f7c470.

Change-Id: I776cf00df78c67595b3ef132476d308873301f82
ndroid.bp
37bc918f0333d56cc87b5bf428cb629cb5f7c470 07-Apr-2016 Colin Cross <ccross@android.com> Build sanitizer libraries

Change-Id: Ia931bce4311b2d4e6c2bac88e9216fbaaac671b1
ndroid.bp
799172d60d32feb1acba1a6867f3a9c39a999e5c 04-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master compiler-rt for rebase to r256229

http://b/26987366

Change-Id: I0ca3d7d3f1b7926fcffcb5b467e79958de576437
ndroid.mk
MakeLists.txt
anitizer_allocator_test.cc
anitizer_common_test.cc
anitizer_libc_test.cc
anitizer_linux_test.cc
anitizer_posix_test.cc
anitizer_stacktrace_test.cc
anitizer_suppressions_test.cc
anitizer_test_main.cc
cdce50bda3603770cc4ef80cbb613c78b8e47a17 01-Jul-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master compiler-rt for rebase to r239765

Change-Id: I722dcde07e4f76a8a35ca701d89be5f311840e74
ndroid.mk
MakeLists.txt
anitizer_stacktrace_printer_test.cc
237aaa6a1d5c24d8de1763b6d7824de05538cc89 16-Jun-2015 Dan Albert <danalbert@google.com> Use new sanitizer option.

Forgot the other makefiles in the previous patch.

Change-Id: I83c3253531edd4002c294eb34701be8e0173367a
ndroid.mk
259f7063e3e4c4b94dded1e90ab0a943d0fa737b 06-May-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master compiler-rt for rebase to r235153

Change-Id: I7c900e78d263fe0f574369e8383ccac7e36f5c3b
anitizer_libc_test.cc
anitizer_procmaps_test.cc
anitizer_stacktrace_test.cc
92f9e2f49ae9a173338bd3c208feefe667239100 12-Dec-2014 Dan Albert <danalbert@google.com> Build ubsan libraries for the host.

Change-Id: Idaf914af41516ec1d327f3344882f12c54f2a272
ndroid.mk
7c9150579ed0278492f51cc8434b1d63a44b9bd1 08-Apr-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master compiler-rt for rebase to r233350

Change-Id: I5f20256ce73ec7b5956f742b4062f850bf11b667
MakeLists.txt
anitizer_libc_test.cc
anitizer_stacktrace_test.cc
anitizer_stoptheworld_test.cc
anitizer_symbolizer_test.cc
86277eb844c4983c81de62d7c050e92fe7155788 23-Mar-2015 Stephen Hines <srhines@google.com> Update aosp/master compiler-rt for rebase to r230699.

Change-Id: I6c415fd5f6420e3012d9da76719111721e906dfa
MakeLists.txt
anitizer_allocator_test.cc
anitizer_deadlock_detector_test.cc
anitizer_flags_test.cc
anitizer_libc_test.cc
anitizer_linux_test.cc
anitizer_printf_test.cc
anitizer_procmaps_test.cc
anitizer_suppressions_test.cc
anitizer_test_utils.h
6d1862363c88c183b0ed7740fca876342cf0474b 27-Nov-2014 Stephen Hines <srhines@google.com> Update aosp/master compiler-rt for rebase to r222486.

Change-Id: I38047809dbac0425193c82e810315998adbb380d
MakeLists.txt
anitizer_allocator_test.cc
anitizer_common_test.cc
anitizer_posix_test.cc
anitizer_stackdepot_test.cc
anitizer_stacktrace_printer_test.cc
anitizer_stacktrace_test.cc
anitizer_suppressions_test.cc
anitizer_thread_registry_test.cc
b625a87696a619962e3b62804b0b42d8d6f31f29 20-Oct-2014 Dan Albert <danalbert@google.com> Fix checks for Android.

__ANDROID__ is a define that comes from the toolchain when building
for Android targets. ANDROID has a different meaning. ANDROID is
defined for _every_ Android build, including those done for host
modules. For host modules, we want to build the regular Linux
sanitizers and builtins, not the one for Android devices. This hasn't
been a problem until now because we only just started building the
sanitizers for the host.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@220203 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 75a00b772e5e035a420eb9639eba1dacf191f7d4)
anitizer_test_utils.h
6a211c5814e25d6745a5058cc0e499e5235d3821 21-Jul-2014 Stephen Hines <srhines@google.com> Update compiler-rt for rebase to r212749.

Includes a cherry-pick of:
r213309 - fixes umodsi3

Change-Id: Ic7367e3586b6af7ef74bee6a8cf437d5f28d975a
MakeLists.txt
anitizer_deadlock_detector_test.cc
anitizer_flags_test.cc
anitizer_ioctl_test.cc
31a5cd83406be83bcdb91df03e16816e3af8c615 14-Jun-2014 Dan Albert <danalbert@google.com> Exclude Android from the tests for valloc/pvalloc.

These functions are being removed from Android because they were removed
from POSIX 2004.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210962 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_test_utils.h
2d1fdb26e458c4ddc04155c1d421bced3ba90cd0 29-May-2014 Stephen Hines <srhines@google.com> Update compiler-rt aosp/master for 3.5 (r209699) rebase.

Change-Id: I158a30186f0faea2e2400e9dfdd878db2eb40e90
MakeLists.txt
it.site.cfg.in
anitizer_allocator_test.cc
anitizer_allocator_testlib.cc
anitizer_atomic_test.cc
anitizer_bitvector_test.cc
anitizer_bvgraph_test.cc
anitizer_common_test.cc
anitizer_deadlock_detector_test.cc
anitizer_flags_test.cc
anitizer_format_interceptor_test.cc
anitizer_ioctl_test.cc
anitizer_libc_test.cc
anitizer_mutex_test.cc
anitizer_printf_test.cc
anitizer_procmaps_test.cc
anitizer_pthread_wrappers.h
anitizer_scanf_interceptor_test.cc
anitizer_stacktrace_test.cc
anitizer_suppressions_test.cc
anitizer_test_config.h
anitizer_test_utils.h
anitizer_thread_registry_test.cc
bb4697fe8cbe79c517e6f85713f2de6bd804209d 14-Nov-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Print symbolized stack frame using a single Printf() call.

This reduces the number of "write" syscalls performed to print a single
stack frame description, and makes sanitizer output less intermixed with
program output. Also, add a number of unit tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194686 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
1b17f5b79d58c5aff291dde05727ad0b215b81c6 13-Nov-2013 Alexey Samsonov <samsonov@google.com> [ASan] Do not rely on malloc context in allocator reports.

Invoke a fatal stack trace unwinder when ASan prints allocator-relevant
error reports (double-free, alloc-dealloc-mismatch, invalid-free).
Thus we'll be able to print complete stack trace even if allocation/free
stacks are not stored (malloc_context_size=0).

Based on the patch by Yuri Gribov!


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194579 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_stacktrace_test.cc
f16dc4234098a22a9d0d56f0198d87905481e7fd 07-Nov-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Make StackTrace::Unwind the only public way to unwind a stack trace.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194196 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_stacktrace_test.cc
53177247698bfba075f2d5b255a447fc3ced6976 24-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> Introduce an operator new for LowLevelAllocator, and convert most users to it.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193308 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_thread_registry_test.cc
8fa4edcb169ab77355c77e065fc5387085787a8a 17-Oct-2013 Kostya Serebryany <kcc@google.com> [asan] Fix a deadlock between asan's allocator and lsan

Summary:
This fixes a deadlock which happens in lsan
on a large memalign-allocated chunk that resides in lsan's root set.

Reviewers: samsonov, earthdok

Reviewed By: earthdok

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1957

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192885 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
3e0b8ff07e86e0858e016d187d842e97aea2255d 12-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Remove StackTrace::max_depth field

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192534 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_stacktrace_test.cc
70db33e143303752c7fe8800d15b5b31066b1e0d 11-Oct-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Define kPthreadDestructorIterations on POSIX systems.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192453 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_linux_test.cc
anitizer_posix_test.cc
cdae9426eaeee302b3d7e5d914e5baf0ce436e20 11-Oct-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Ninja style fix to r192442.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192443 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_linux_test.cc
6eb836f9bd2b96a321ddc7fb5ea08aa65131e61f 11-Oct-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Move the PTHREAD_DESTRUCTOR_ITERATIONS constant to sanitizer_linux.h.

Add a test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192442 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_linux_test.cc
064da32709c8bf81283062abc04cf6e88e6c075d 11-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Simplify StackTrace::FastUnwindStack interface and fix a bug with one-frame stack traces

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192428 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_stacktrace_test.cc
90b0f1e3ba126bb2e92ab51ef379c98782c23d90 04-Oct-2013 Alexey Samsonov <samsonov@google.com> Refactor the usage of strip_path_prefix option and make it more consistent across sanitizers

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191943 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
4af0f21c0c98950df1136dbec8824a029ed5bb8e 03-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: ignore interceptors coming from specified libraries

LibIgnore allows to ignore all interceptors called from a particular set
of dynamic libraries. LibIgnore remembers all "called_from_lib" suppressions
from the provided SuppressionContext; finds code ranges for the libraries;
and checks whether the provided PC value belongs to the code ranges.

Also make malloc and friends interceptors use SCOPED_INTERCEPTOR_RAW instead of
SCOPED_TSAN_INTERCEPTOR, because if they are called from an ignored lib,
then must call our internal allocator instead of libc malloc.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191897 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_suppressions_test.cc
821acfaccc7d11b987e2882b022e8d167b0c8a54 21-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: allow to obtain code range for a particular module
this is required to ignore interceptors when called from the module



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191149 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_procmaps_test.cc
7bb2f9b27ee0210f25b009fb5597383b334dc01e 16-Sep-2013 Alexey Samsonov <samsonov@google.com> Minor enhancements for sanitizer_common build rules

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190786 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
a09507c38cf9dd9119e5aa9bd6d91383514f857b 10-Sep-2013 Eli Friedman <eli.friedman@gmail.com> Delete unused variables.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190383 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_mutex_test.cc
9da14cc709011d1d61ac1bcc9a8a78c00e80fce5 08-Sep-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Use generic configs for running sanitizer_common unit tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190276 91177308-0d34-0410-b5e6-96231b3b80d8
it.cfg
it.site.cfg.in
f7f2e431263cc0aa321218ce8978b289187a39a3 06-Sep-2013 Alexey Samsonov <samsonov@google.com> Migrate ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS to new spelling - ATTRIBUTE_NO_SANITIZE_ADDRESS

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190136 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_test_utils.h
9150f397ba4c5478275d72665ea3e53a84c7076a 06-Sep-2013 Kostya Serebryany <kcc@google.com> [sanitizer] make the allocator crash instead of returning 0 on huge size (controlled by the allocator_may_return_null flag)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190127 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
db9d684d26dc31a7522bb90841d51cbcc84ed23b 04-Sep-2013 Alexey Samsonov <samsonov@google.com> Disable FindPathToBinary test on Android

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189923 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
1dcd1d9d1c86ab9b728386d261fbebe00b32e097 03-Sep-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add the way to find binary in PATH

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189799 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
72870db5f2e0e83b2e925eef594dacfae275a8de 03-Sep-2013 Alexey Samsonov <samsonov@google.com> Add internal_strchrnul function

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189797 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_libc_test.cc
cb339108cca40fb4c1ed520656cb6cb75889a237 02-Sep-2013 Sergey Matveev <earthdok@google.com> [sanitizer_common] Add internal_clone().

Add a wrapper for the clone syscall for use in StopTheWorld. We
implement it only for x86_64, so stop building StopTheWorld for other platforms
(no one uses it outside x86_64 anyway).

See https://code.google.com/p/address-sanitizer/issues/detail?id=214 for why we
can't use the glibc clone() wrapper.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189753 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_stoptheworld_test.cc
38a61aa7d3fc1deeb612e02863f0fbb417cda612 29-Aug-2013 Alexey Samsonov <samsonov@google.com> [sanitizer] Refine CMake rules for generating exported symbols and lint checking

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189577 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
fafab2f5e27eecbfaaee727f66ecd068dafa41fe 28-Aug-2013 Alexey Samsonov <samsonov@google.com> Check code style in check-sanitizer command

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189475 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
c154820b43052cfc54ee20752a3232aa8e6c7843 28-Aug-2013 Alexey Samsonov <samsonov@google.com> [sanitizer] fix code style

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189474 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
384a448fbe081352f7b3bb927093412ad1725cff 26-Aug-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Add a fast version of StackDepotGet() for use in LSan.

Add a class that holds a snapshot of the StackDepot optimized for querying by
ID. This allows us to speed up LSan dramatically.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189217 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
anitizer_stackdepot_test.cc
a1b15b4af39b843ebb8545d295aa872829eb8187 10-Aug-2013 Daniel Dunbar <daniel@zuster.org> [tests] Update to use lit_config and lit package, as appropriate.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188116 91177308-0d34-0410-b5e6-96231b3b80d8
it.cfg
it.site.cfg.in
31f1941f7e2ee9548a77fb19186960b9b8a0632a 09-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix handling of %n in scanf interceptor.

%n does not increase the input item count. The new code emits writes to %n
arguments even if it has run out of input items.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188069 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_scanf_interceptor_test.cc
55e6f3f4e6b799e0affd13f28137661f8707133f 16-Jul-2013 Dmitry Vyukov <dvyukov@google.com> tsan: extend suppressions format with ^ and $ symbols
not it's possible to write more precise suppressions,
e.g. "^foo$" won't match "blafoobar"


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186424 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_suppressions_test.cc
b33cfeb6004d3a93e6d35749c14db0190c6c2b4c 28-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Add suppression support.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185152 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_suppressions_test.cc
134da448d092f82bfd5ddcdfa203c5c652c51474 27-Jun-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Support padding with spaces in Printf.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185082 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_printf_test.cc
a52e5c6f371bcc66e89792db1219a557664aab8d 26-Jun-2013 Sergey Matveev <earthdok@google.com> [tsan] Move some suppressions-related code to common.

Factor out code to be reused in LSan. Also switch from linked list to vector.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184957 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_suppressions_test.cc
c87f737d972a96a05c85ef9be03d0f40890c653f 24-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Fix android build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184704 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
ac78d0087281e9b40bb043f827fbde8c05c6505a 24-Jun-2013 Sergey Matveev <earthdok@google.com> Revert to C-style callbacks for iteration over allocator chunks.

Also clean up LSan code, fix some comments and replace void* with uptr
to bring down the number of reinterpret_casts.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184700 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
851e22ad83fe5f389ca845731fe0abf749a86214 20-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Fix unused function warning w/o changing compiler flags.

We have way too many different build systems.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184409 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_ioctl_test.cc
4612abac2e172e077246cec0fcbed291f55a1d02 20-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Handle EVIOxxxx ioctls.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184405 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_ioctl_test.cc
a64d4359902f1f64992aedfe10d8882ae7c66f40 14-Jun-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Rename InternalVector to InternalMmapVector

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183972 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
4fcc565018922bc50bd07858152e772bf642d5bb 31-May-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Fix r182994 - update test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182995 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
816bdb76f98febeb68456e4b570f2c09f2013451 30-May-2013 Alexey Samsonov <samsonov@google.com> Fix #if guards in sanitizer_common code

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182918 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_linux_test.cc
f8c3f3db72780cd57ce7959e70167b7553e55fb8 30-May-2013 Kostya Serebryany <kcc@google.com> [sanitizer] introduce LargeMmapAllocator::GetBlockBeginFastSingleThreaded, required for LeakSanitizer to work faster. Also fix lint.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182917 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
4c086441ff9d06e53fa941671781008d453dba49 29-May-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Change the way GetThreadStackAndTls() obtains the thread descriptor address.

Instead of using arch_prctl(ARCH_GET_FS), read the address from the
tread descriptor itself. This lets us avoid sandboxing issues. Also,
GetThreadStackAndTls() can now be implemented on i386.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182853 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_linux_test.cc
5aac3a6caad7bd3c82050db13a37eb1a3808b5ac 29-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Now that we have a custom allocator, remove dummy allocator
definitions from test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182841 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_nolibc_test_main.cc
1f3c2fee395abc36230c445e9ebdba55c4729d35 29-May-2013 Alexey Samsonov <samsonov@google.com> Make InternalAlloc/InternalFree in sanitizer runtimes libc-free by switching to a custom allocator.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182836 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
cc8ed30ebfb4ff6f9d9c7e77760dd5c7841a1af8 28-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Add a test case for Linux/x86_64.

Differential Revision: http://llvm-reviews.chandlerc.com/D873

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182770 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_nolibc_test.cc
anitizer_nolibc_test_main.cc
anitizer_test_main.cc
57434a3174cfd9c4c5f304ea412492e4935cc18d 27-May-2013 Alexey Samsonov <samsonov@google.com> Improve support for compiler-rt tests in CMake build.

Now compiler-rt tests run correctly if compiler-rt is checked out into
arbitrary directory (not necessarily projects/compiler-rt).
Patch by Greg Fitzgerald!


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182726 91177308-0d34-0410-b5e6-96231b3b80d8
it.cfg
it.site.cfg.in
1b54cbfbd12d6302838a6d4d6c42d90bd9c6b9d5 20-May-2013 Kostya Serebryany <kcc@google.com> [sanitizer] factor out ByteMap from SizeClassAllocator32 so that it can be later replaced with a more memory-efficient implementation on 64-bit.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182234 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
0c547de62dc0852a03fae2d868fa571e7f5512b3 17-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Begin moving sanitizer_common's libc-dependent code to a separate library

Introduce a new object library, RTSanitizerCommonLibc, which will contain
the subset of sanitizer_common with libc dependencies. RTSanitizerCommon
contains the remainder of sanitizer_common, and is intended to have no
libc dependencies. Begin moving code to RTSanitizerCommonLibc, starting
with sanitizer_common.cc, whose libc-dependent portion is moved to
sanitizer_common_libcdep.cc, the first member of the new library.

This split affects the CMake build only. The makefile build continues
to produce the full sanitizer_common library.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182118 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
374fd35926d1c4877ac26ca8e2877154cb698cb5 17-May-2013 Dmitry Vyukov <dvyukov@google.com> tsan: comment out debug output in test


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182087 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
f14ef72c52673c8c37c95b07fcc79631a10d7772 16-May-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Fix the region overflow condition in SanitizerAllocator64::PopulateFreeList().

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182002 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
871b7fd4fdde47cbf36c2b5c19d679e87dd11df6 16-May-2013 Kostya Serebryany <kcc@google.com> [sanitizer] fix the GetBlockBegin overflow bug while preserving the performance optimization (use 32-bit division when possible). Improve the benchmarks that checks for performance of GetBlockBegin/GetMetaData

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181989 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
a1560bd5d12ddf245ca44fa6a259e9b5c5f81933 16-May-2013 Kostya Serebryany <kcc@google.com> [sanitizer] added a test for a bug in allocator discovered by Sergey Matveev (uint32 overflow in GetBlockBegin)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181984 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
f931da85ce8668751628ded926ecad013c5d6f1a 15-May-2013 Kostya Serebryany <kcc@google.com> [asan] fix powerpc build and one test; fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181881 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_linux_test.cc
3de0086409d143a612a54a7a0ed809e286656188 14-May-2013 Sergey Matveev <earthdok@google.com> [sanitizer] LibraryNameIs in sanitizer_linux

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181787 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_linux_test.cc
a615b26e3e3c2da0b2f950f506f6c2c220430c19 14-May-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Minor fixes in sanitizer_common tests.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181786 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
anitizer_libc_test.cc
anitizer_linux_test.cc
anitizer_stoptheworld_test.cc
anitizer_stoptheworld_testlib.cc
411e828bf174dab9cfe7b64a5081cb870b71a73a 14-May-2013 Kostya Serebryany <kcc@google.com> [tsan] fix gcc build with -Wall

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181763 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_libc_test.cc
9578a3ecfc35a264ede1135033398e2a77a6cad6 08-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Change internal syscall API to remove reliance on libc's errno.

This change moves to a model where the error value of a system call is
potentially contained in the return value itself rather than being
implicit in errno. The helper function internal_iserror can be used
to extract the error value from a return value. On platforms other
than Linux/x86_64 this still uses errno, but other platforms are free
to port their error handling to this new model.

Differential Revision: http://llvm-reviews.chandlerc.com/D756

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181436 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_libc_test.cc
24323de08fa8850712d56621bff29dbbbd0285a9 07-May-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Move GetThreadStackAndTls from TSan to sanitizer_common.

Move this function to sanitizer_common because LSan uses it too. Also, fix a bug
where the TLS range reported for main thread was off by the size of the thread
descriptor from libc (TSan doesn't care much, but for LSan it's critical).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181322 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
anitizer_linux_test.cc
2be3a283939d4fc14ad86f6cd8be34b1468f22ba 07-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Sanitizer __internal_*stat interface.

With this change, __internal_*stat always expect a "struct stat *" argument.
This avoids stat/stat64 caller-side confusion (sanitizer_common tests already
made this mistake), and allows the use of __internal_fstat() as a drop-in
replacement for libc's fstat().


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181311 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_libc_test.cc
ff7c14f911463db91b574533f62eb847a2e08b1c 23-Apr-2013 Alexey Samsonov <samsonov@google.com> Revert r180082 and add a test for SetEnv function

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180098 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_linux_test.cc
a2c1d98745a9e8e860948004423d0072424f48b7 08-Apr-2013 Kostya Serebryany <kcc@google.com> [sanitizer] Fix boundary condition in LargeMmapAllocator::GetBlockBegin. Patch by Sergey Matveev

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179007 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
583025ddc52988cdcedb5dee57e0d66a0c586340 04-Apr-2013 Kostya Serebryany <kcc@google.com> [sanitizer] while doing fast unwinding make sure that the frame pointer is aligned; fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178747 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_stacktrace_test.cc
6e7dca77e5e28ba4411edeadc2cfb7a4e296cef6 28-Mar-2013 Alexey Samsonov <samsonov@google.com> Fix unmatching ASan runtime flag for init-order checking exposed by r178158. Add a test for r178158.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178229 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_flags_test.cc
b037f754eb43ddd2c5401ff7c7b212b57f8f4eb6 26-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Disable atomic_test on Android, where it crashes Clang.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177998 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_atomic_test.cc
d264ca0436d7e881b28a43dc7e008d1889cd12b2 25-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add basic test for atomic_compare_exchange implementation

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177851 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_atomic_test.cc
5efb53ed40eeab7bc6c361c0825608fc97322e1d 18-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix lint warnings


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177251 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_stoptheworld_test.cc
5d177a0d5973e863781b1262ece49a5e3325ecab 18-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Rely on template argument deduction in sanitizer_allocator_test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177245 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
3614c16084e8a0dc8ae3418402a2d0c6f8107e39 15-Mar-2013 Alexander Potapenko <glider@google.com> [libsanitizer] StopTheWorld in sanitizer_common

StopTheWorld puts the process in a suspended state before running the
user-supplied callback. To be used in TSan and in leak checking code.

Linux implementation provided.

Patch by Sergey Matveev (earthdok@google.com)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177156 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_stoptheworld_test.cc
anitizer_stoptheworld_testlib.cc
a82ca9142c30be8255f5a4dfa596df9304b20dbd 15-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Don't link tests with -lpthread on Android.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177151 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
6c876e428923295706f63fee68ef35d2f0fbaec5 15-Mar-2013 Kostya Serebryany <kcc@google.com> [sanitizer] fix gcc build warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177149 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
300f9534eeed62339eb8b73722d4142c60238ffc 15-Mar-2013 Kostya Serebryany <kcc@google.com> [asan] Add ForEachChunk() to sanitizer allocators. Patch by Sergey Matveev

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177147 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
6ef35e15b1c499be25f80f5983a4d506f14f8948 15-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Generalize compile/link flags for sanitizer_common tests on Android and on other platforms.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177146 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
116c8029f506b074a8b9c83605b14ac4bf0259c6 15-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Build sanitizer_common tests w/o RTTI. Move ThreadRegistry class members below methods.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177143 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
827d4ef8b76760ef8c58612d916b8f53081bf368 14-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Fix compiler warnings and style issues in sanitizer_common tests. Use -Werror=sign-compare when building them.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177077 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_linux_test.cc
anitizer_thread_registry_test.cc
6d429cda69b7ccc007ee368a73a6040c6b125afb 14-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add generic ThreadRegistry class for sanitizer runtimes. This class holds basic thread bookkeeping logic and allows specific sanitizer runtimes to create thread contexts and mark threads as created/running/joined etc. The class is based on the way we currently store thread contexts in TSan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177074 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_thread_registry_test.cc
3d048541c6fd5a52217707ec9799489100dd7c98 14-Mar-2013 Alexander Potapenko <glider@google.com> [libsanitizer] fixed a bug in ThreadLister tests where we forgot to terminate one thread

Patch by Sergey Matveev (earthdok@google.com)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177068 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_linux_test.cc
32602c528aad37f3e37c83b9a638740eb18e30f5 14-Mar-2013 Alexander Potapenko <glider@google.com> [libsanitizer] Fixed incorrect handling of pre-existing threads in ThreadLister test.
Also, extended the test to check that ThreadLister::Reset() works as intended.

Patch by Sergey Matveev (earthdok@google.com)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177060 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_linux_test.cc
b114ed83859d8d4964ac2284584733bcd2acf4f6 13-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Move GetTlsSize code from TSan to sanitizer_common.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176938 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
f2c417c3b7d7a11f1f6f20edca08af2cb1fad142 12-Mar-2013 Kostya Serebryany <kcc@google.com> [sanitizer] use fewer size classes in the allocator to reduce the memory footprint. There is no all-size-fits-all constant here, but this change is positive or neutral on several large apps I've tested

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176855 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
ce700979f644c790c2d9d80f5cc2a1ada0380284 11-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Implement BlockingMutex::CheckLocked()

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176805 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_mutex_test.cc
aa0f20dca32ad6ed0d4f5623b393dd700375f12a 11-Mar-2013 Kostya Serebryany <kcc@google.com> [sanitizer] make SizeClassAllocator64::GetBlockBegin more bullet proof (by Sergey Matveev)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176799 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
3c27d7f4e3413dd4f2e50eebac7c8f9bd916c1ca 06-Mar-2013 Reid Kleckner <reid@kleckner.net> [msan] pthread_join() returns int, not void*

pthread_join() returns an error code, not the result of the
pthread_create() function like I thought.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176554 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
5d3dcb8fa4947ebeab61bcf512ab352576d0fb41 06-Mar-2013 Reid Kleckner <reid@kleckner.net> [sanitizers] Fix check failure on dealloc from new thread

Summary:
Adds a test for this case, which was reduced from a chromium build of
WebKit's DumpRenderTree.

Reviewers: eugenis

CC: glider

Differential Revision: http://llvm-reviews.chandlerc.com/D495

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176552 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
bcf393e373713021c88b0e39c73a615a4e0f3fd2 05-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] fix signed-unsigned mismatch in test and use correct order of EXPECT_EQ() args

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176479 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
352b245d32c6022a6eb5f5dec7f1d341c4ab88a3 05-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add methods back() and pop_back() to InternalVector. Patch by Sergey Matveev

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176478 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
5c217b6a61cc7a577f5fa4063d5be97d8c3062f0 28-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Relax ThreadLister tests to allow possible pre-existing threads. Do proper mutex destruction. Patch by Sergey Matveev

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176249 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_linux_test.cc
6fb47af2d2d305adbfc3d41bea589d1527a364a9 27-Feb-2013 Kostya Serebryany <kcc@google.com> add Linux syscall wrappers and ThreadLister to sanitizer_common

ThreadLister is a Linux-specific class for obtaining the thread IDs of a process from procfs (/proc/<pid>/task/). It will be used by leak checking code.
Also add several syscall wrappers which will be required by the same code that uses ThreadLister, but are not used in ThreadLister itself.
Patch by Sergey Matveev


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176179 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_linux_test.cc
1d2ed3ab71a574aaa0f4cea21333ae2bb786c93a 27-Feb-2013 Kostya Serebryany <kcc@google.com> [asan] guard ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS definition with an #ifndef

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176175 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_test_utils.h
b5f952134cad10f8416ebeccf375da771e4b9ca9 26-Feb-2013 Kostya Serebryany <kcc@google.com> [sanitizer] A low-level vector implementation to be used in leak checking code. Patch by Sergey Matveev

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176089 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
00b8a34250e9f6c1c0211c33f4fe4da15d0fb24a 26-Feb-2013 Kostya Serebryany <kcc@google.com> [asan] use the new attribute syntax (no_address_safety_analysis => no_sanitize_address)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176077 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_test_utils.h
040620c84740b602bed9d67afeab2772d90b1158 25-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] one more fix for signed/unsigned mismatch in comparison

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176020 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_stacktrace_test.cc
7907f1d0bd86e83677f8ae3bea7dc484546042cd 25-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] fix signed/unsigned compare warnings in sanitizer_stacktrace_test. Build sanitizer_common tests with -Werror as we use predictable just-built Clang for building them

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176014 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_stacktrace_test.cc
0b487c02ed906e555fa473cea5afcd6363549373 22-Feb-2013 Reid Kleckner <reid@kleckner.net> [Sanitizer] Add a test for the fast unwinder

Summary:
The test sets up fake x86-style fp+retaddr frames, since that's all the
unwinder works with.

Reviewers: kcc

CC: eugenis

Differential Revision: http://llvm-reviews.chandlerc.com/D445

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175893 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_stacktrace_test.cc
626e6fdd9c01c9b683c33656c2014ef9a2690e50 19-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix FileOps test on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175515 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_libc_test.cc
7fe5526c2cb2d88e3ab288aa601a874c47fedb69 19-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Slightly lower allocator test memory consumption.

This way it fits on a random 1G device.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175513 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
1f45e2dcd6732377577ac33f8729b21f981417b4 19-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Allow runtime flags be separated by colon as well as space

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175511 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_flags_test.cc
366984e3aa286f7b4fb45f5c9e703f2768c407ed 19-Feb-2013 Kostya Serebryany <kcc@google.com> [asan] instrument memory accesses with unusual sizes
This patch makes asan instrument memory accesses with unusual sizes (e.g. 5 bytes or 10 bytes), e.g. long double or
packed structures.
Instrumentation is done with two 1-byte checks
(first and last bytes) and if the error is found
__asan_report_load_n(addr, real_size) or
__asan_report_store_n(addr, real_size)
is called.

asan-rt part

Also fix lint.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175508 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_libc_test.cc
0fa691b7ec97d8c3948a637d6263822ed4e738f7 18-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Make temporary filename depend on user ID

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175424 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_libc_test.cc
f4a1ea7e0130273039f6c76d97e852f28e572d7a 12-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Tests for scanf parser in allowGnuMalloc=false mode.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174971 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_scanf_interceptor_test.cc
44be70b186549d592c952a13aafe79bfeae89f81 11-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] clang-format pass over scanf code.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174888 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_scanf_interceptor_test.cc
0527bf2e6aa5b35da8aa57e866287ab66af67c15 11-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] scanf: don't report stores that did not happen.

Respect REAL(scanf) return value and don't report memory stores that
could potentially happen, but did not.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174887 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_scanf_interceptor_test.cc
0e43e9ea9a1d5453fe1c25a6ec3927b417a8f5b1 11-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Scanf parser improvements.

Handle %a in cases when it is unambiguous.
Handle %m.

Patch by Jakub Jelinek.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174882 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_scanf_interceptor_test.cc
4f06d0ba90aae87a21f3a7d75db985a01b8fb6d2 08-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Add 2 random tests for the scanf implementation.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174705 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_scanf_interceptor_test.cc
c36c168f8f482f35f200fea57dd88a888bf062fb 08-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Improve scanf interceptor

This a rewrite of the scanf parser. The new implementation is pretty close to
the spec, with a few shortcuts taken here and there. It is conservative, i.e.
it gives up parsing if it does not understand some part of the format string,
or runs into an ambiguous % spec. It does not handle some rarely used parts of
the spec, like %n$ - for now.

I'm also moving parser call to after the original *scanf function completes,
so that we can find out the store size of %s directive by the use of strlen()
on the target buffer.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174704 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_scanf_interceptor_test.cc
4c9317a7b61e136f832d2ede70f557963fd46bce 04-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] extend internal libc with stat/fstat/lstat functions

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174316 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_libc_test.cc
e437e9e2172415e0ce91202a7e5a139a07853df9 30-Jan-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add change missed in r173926

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173929 91177308-0d34-0410-b5e6-96231b3b80d8
it.site.cfg.in
ba5e99668e3030cc5bab357a04271a1bdbac209c 30-Jan-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] update style checker script and fix namespace style warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173910 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
f6acafcaf557fa8f89794ac08597a854475dfc73 28-Jan-2013 Alexey Samsonov <samsonov@google.com> [CMake] Fix compiler-rt tests after r173617

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173668 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
3c2999e340a57a663f1b507006becfc49b368473 25-Jan-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] More fixes to scanf interceptor: stub support for %s, support for %[...] directive

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173451 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_scanf_interceptor_test.cc
6503100c43c8951f436698b47362cdc8c2ec0a69 25-Jan-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] fix errors in scanf interceptors: add support for %c and fix cases like %5d

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173440 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_scanf_interceptor_test.cc
bdd844cb41718c27ef727a99a236191bc29a3df8 24-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: implement malloc stats querying


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173332 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
392c50d4a56557a51a353509c665188aef115f74 18-Jan-2013 Alexey Samsonov <samsonov@google.com> CMake: create AddCompilerRT module and implement convenience add_compiler_rt_object_library function

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172826 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
82a9080eaff95d69b270cd863e9df63e3b4e59ad 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] lint


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172817 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_scanf_interceptor_test.cc
4f32c0beaa83ffbb84db23d2e6205bee57c39ce1 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Rename 2 files *.h->*.inc as appropriate.

Also add a missing include.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172814 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_scanf_interceptor_test.cc
2f3aef010fdeadfe7ec995dc534544acb5f357fb 18-Jan-2013 Alexey Samsonov <samsonov@google.com> CMake variables renaming: X86_64->x86_64 I386->i386

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172812 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
843d662b11b50b5f4974d485ccd43f3c509cad14 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Remove an unused variable.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172811 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_scanf_interceptor_test.cc
996c4f2fa53cce8f9d7b517073f38569460de505 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Common *scanf interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172805 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_scanf_interceptor_test.cc
281ba4f28aecdf1c350c164768894c7f3962b9ff 15-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: fix standalone malloc implementation


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172529 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_testlib.cc
5490b286555098330d9370148c153904d6046d31 15-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: fix lint warnings


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172520 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_testlib.cc
8b29217930dc4f8730cfecbdcb1c7041e1ea735a 15-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: fix bugs in the testlib


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172519 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_testlib.cc
084e445f0d5db096baf8f8d56078e57be581fe90 15-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: rename the file (it's not 64-bit specific anymore)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172518 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_testlib.cc
anitizer_allocator_testlib.cc
48ddbef1d051875b2d0b204e8d78300b58d80a85 14-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Move large part of asan_test_utils.h to sanitizer_common.
Move my_rand() to the common header.

This lets us avoid the use of rand_r in sanitizer_common tests.
There is no rand_r on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172421 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
anitizer_test_utils.h
639acd06b6436ab30ab934a9111b6d1348e92855 14-Jan-2013 Alexey Samsonov <samsonov@google.com> Fix-up copypasto from r172410

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172419 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
539f5e75b637d1ad92735b05fe89b34174cfe33c 14-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Build rules for sanitizer_common tests on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172410 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
0d02d75ca1e34217cb762ec2b5cc13a88993ba94 14-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Remove thread-locals from sanitizer_common tests.

Not supported on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172408 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_testlib.cc
anitizer_allocator_test.cc
anitizer_list_test.cc
3ede807f3a02bdbcebf3e635bf2aeacf1c0082bd 14-Jan-2013 Kostya Serebryany <kcc@google.com> [asan] add more frames to standalone_malloc_test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172383 91177308-0d34-0410-b5e6-96231b3b80d8
tandalone_malloc_test.cc
31dc66f6492773e974d32bde84d5d2df9c35a82b 14-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: add missing file


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172381 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_mutex_test.cc
f4f51f2cc6fa936f0c65577f82e6b62989d546ee 14-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan/tsan: move blocking mutex from asan to sanitizer_common


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172380 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
a343ca04767218fd05dd9557ed4d180b55b7fb11 11-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan/tsan: faster memory allocator
replace lists with arrays


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172217 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
09575a176caef64cf43f3eac8e197ee4f55572bd 11-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: improve allocator benchmark


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172213 91177308-0d34-0410-b5e6-96231b3b80d8
tandalone_malloc_test.cc
abb1febb6046fbc5fc30c7872dd06b27d0fb51f9 11-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: improve the benchmark


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172209 91177308-0d34-0410-b5e6-96231b3b80d8
tandalone_malloc_test.cc
312de6a1ac31d295d5ae592084e605b03661acdb 11-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan/tsan: fix bug in list implementation


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172187 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_list_test.cc
0b9218ab2b68401673c5d6225c9833bd58003ed4 10-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] fix the non-cmake build (2-nd attempt)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172068 91177308-0d34-0410-b5e6-96231b3b80d8
tandalone_malloc_test.cc
1045df665c7b314991fbdbe0eadd11b003574a04 10-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] fix the non-cmake build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172063 91177308-0d34-0410-b5e6-96231b3b80d8
tandalone_malloc_test.cc
a62440a464092ece8c068b57214ad3d13ec39b4b 10-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] add standalone_malloc_test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172061 91177308-0d34-0410-b5e6-96231b3b80d8
tandalone_malloc_test.cc
eb2809311c94b73c269ccef8d68ae368642e5754 28-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] implement more strict checking for memset/etc parameters. Instead of checking the first and the last byte, we check the entire shadow region. This costs ~10 slowdown for the instrumented functions. Motivated by a nasty memset-buffer-overflow-by-140-bytes in chrome which was reported as a use-after-free or not at all

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171198 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_libc_test.cc
d7d7b5f39cf5bbc36403afb0a94d473519c7ab78 27-Dec-2012 Alexey Samsonov <samsonov@google.com> Define COMPILER_RT_CAN_EXECUTE_TESTS variable on platforms where we can produce working binaries and use it in build rules for sanitizers tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171160 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
a54aec8ca2e372b1a841d605d53cab5e336aeb03 27-Dec-2012 Kostya Serebryany <kcc@google.com> [asan/tsan] when unmapping a chunk of user memory, apply madvise(MADV_DONTNEED) to the corresponding chunk of shadow memory. Also update sanitizer_allocator64_testlib.cc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171144 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_testlib.cc
81088ebf34c3ef1b8ac3a9789d3896c7b9a93003 25-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix tests to consistently use internal functions (otherwise it leads to false positives)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171057 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
anitizer_flags_test.cc
bb5d0575f9b1100a326f125c7cd8224938af5693 25-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] increase the maximum size class of the fast allocator. This should save quite a bit of memory in tsan/msan (and later in asan). This also puts more stress on the large allocator. Add a couple of checks

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171055 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
68d3a1bae35be595faf7d9f028a268f390501029 24-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] fix gcc warnings, enable one tests under asan_allocator2

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171036 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
b8c363d3087128a05b18bbcf5ce0942607e34396 24-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] make LargeMmapAllocator::GetBlockBegin faster by not using a linked list

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171035 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
038820fbab7e77c546b2c37bf674824980320f18 24-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] rework the size class map in the sanitizer allocator: make the differences between size classes more uniform.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171031 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
032e833059a673a21facc8e726b5c0c9d1a13d2e 21-Dec-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] CMake build rules for unittests: depend on headers when compiling a file with custom clang.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170897 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
32b8991f961e585ccfe1710f5402a14b4e44cecc 21-Dec-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Don't implicitly add object files to the list of dependencies when building compiler_rt unittests. Fix sanitizer_common and asan build rules accordingly. This also fixes check-sanitizer command on Ninja.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170870 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
f85c06ca511747eba94ea8439581c6355980cdba 20-Dec-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Fix CMake build rules for sanitizer_common tests to respect universal static libraries on Mac

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170698 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
0414b25ab6bd328b96bd48a70382954f30894edf 20-Dec-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Modify CMake build rules for sanitizer_common unit tests: build them with fresh Clang for both 32- and 64-bits (if possible)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170691 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
b1f21c69e02d99944c66e0520d07d8c14d99756f 19-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] one more stability fix in 64-bit allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170498 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
da1f82bcbe50b28d11e93eacdcd529e9f0e2ef38 18-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] fix LargeMmapAllocator::GetBlockBegin

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170434 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
d9b740452db50b47ca16abdc0f5e4bc2abf3afa9 15-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] fix a bug that has crept into the sanitizer allocator and caused SEGV on allocations between 1Mb and 2Mb, improve the test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170274 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
68acb909db275a9d4fb16b37fab4c42b72671abb 14-Dec-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] remove extra typename

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170208 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
9fc1f27f55a4bb3d54858cfd3c32d0bb11002db2 14-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] add AllocatorLeakTest

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170206 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
b6bb60b0fa39efee537cc34bc200edc976df0bc4 14-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix lint warning


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170202 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
68902f431172d101f3c6322d96a99d705a37ad95 14-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: disable allocator tests in debug build


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170187 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
ca661f51dbccc8b8bdeb308751f3b160501f7954 14-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: comment out debug output in test


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170186 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
567ad078d73babb2c8addfbebb1ddd6cd0085c53 13-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] change the way SizeClassAllocator64 allocated memory from the system: instead of one huge mmap(NORESERVE) it does one huge mprotect and then does small on-demand mmaps. This allows us to call OnMap callbacks which are required to poison newly allocated memory in asan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170097 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
214621f7663896987dc509561c762460226c68c2 12-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] add OnMap/OnUmap callbacks to the allocator interface

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169985 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_testlib.cc
anitizer_allocator_test.cc
67f5c81639ab0ba0d7d9048b7206b424b577c90b 07-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] fix lint, remove debug prints

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169620 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
dddb18b7be36fe1843c8b98a8d9d7614aef5ce8d 07-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] implement SanitizerSetThreadName/SanitizerGetThreadName. Just for linux so far (using prctl(PR_GET_NAME))

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169598 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
0bb6e5ddbb11565dfe0a71b0936f0dd76251ea78 07-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] try not to use libc mem* functions in sanitizer_common tests (conflicts with our own interceptors)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169595 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
e280ce59d37a67bee14da56a22e205d6562530b0 06-Dec-2012 Kostya Serebryany <kcc@google.com> [asan/msan] one more test for 32-bit allocator + minor code simplification

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169507 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
674d05c15d3cfcd2e9f0e9fde47d25cd69af924b 06-Dec-2012 Kostya Serebryany <kcc@google.com> [asan/msan] add BulkAllocate to the 32-bit allocator (and a test)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169506 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
8a41bdc963afdf3c2e14aad64a7cd3291fefd8cf 06-Dec-2012 Kostya Serebryany <kcc@google.com> [asan/msan] add GetBlockBegin to the 32-bit allocator (+test)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169499 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
784935d1bbc301eaf92fd9f7d3a551eb65edcd15 06-Dec-2012 Kostya Serebryany <kcc@google.com> [asan/msan] one more test for 32-bit allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169497 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
45595ba6b77b54b8212389cba6b95dc634122145 06-Dec-2012 Kostya Serebryany <kcc@google.com> [asan/msan] new 32-bit allocator, basic functionality so far

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169496 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
cc7525951f401d61e2467f1ebc1b133205516a6c 06-Dec-2012 Kostya Serebryany <kcc@google.com> [tsan] add MmapAlignedOrDie

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169474 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
72166ca99c2f8898a7a540e60aac3959cbd959bf 05-Dec-2012 Kostya Serebryany <kcc@google.com> [tsan] get rid of *allocator64* files, moving everything to *allocator* files. This will help with the 32-bit allocator implementation and testing

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169368 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_allocator64_test.cc
anitizer_allocator64_testlib.cc
anitizer_allocator_test.cc
8937d72020c3a6b1eb95a7c43ae20def843d3411 04-Dec-2012 Kostya Serebryany <kcc@google.com> [tsan] test the allocator with CompactSizeClassMap

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169270 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
82de9426176ac5ca7d36922648b3dbccabd35834 04-Dec-2012 Kostya Serebryany <kcc@google.com> [tsan] minor interface refactoring

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169267 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
cd815adbd3e3792ab2468ed2b1e126d5cc829aaa 04-Dec-2012 Kostya Serebryany <kcc@google.com> [tsan] refactor the allocator tests to allow testing other flavours of the allocator (add templates)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169264 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
9c3929e3a0517305bf10698a05282fa0c8d1b5e2 03-Dec-2012 Kostya Serebryany <kcc@google.com> [tsan] add CompactSizeClassMap as an alternative (more compact) size class map. Not used yet.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169128 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
864f5131db7ccd3fc8344dc2bcdebf66c03a900e 03-Dec-2012 Kostya Serebryany <kcc@google.com> [tsan] remove unused InternalAllocBlock as part of larger refactoring

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169123 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
385542a2e83a4f37de4232d6c72097c1b7d6d44b 28-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: move traces from tls into dedicated storage at fixed address
helps to reduce tls size (it's weird to have multi-MB tls)
will help with dynamically adjustable trace size


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168783 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
e89f1846d58550f919a0ef9081b11d4b0405019d 24-Nov-2012 Kostya Serebryany <kcc@google.com> [asan/tsan] get rid of kPageSize completely in favor of GetPageSizeCached(). This makes the code friendly to more platforms

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168537 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
anitizer_allocator64_testlib.cc
f0f77a54a949966ce45171bc3a7f318f3ee7363a 22-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: better error message for OOM


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168491 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
40bd009d5253b3ccfad363230c2d8ac2e139f81f 02-Nov-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] fix printf unittest on 32-bit arch

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167297 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_printf_test.cc
a517641e8f4365fbc5e3cddf614ebc27efd69c35 02-Nov-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move unit test for Printf from tsan to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167296 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_printf_test.cc
341588afadc46bf6f0dc7babd6d531209aba5202 26-Oct-2012 Alexander Potapenko <glider@google.com> Fix the internal_memmove() implementation that used to skip src[0] if dst < src.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166774 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
anitizer_libc_test.cc
53fec5d65c35f69656f30e16dbfa439d3860be68 18-Sep-2012 Kostya Serebryany <kcc@google.com> [tsan] fix the tsan allocator to handle any alignment

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164107 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
d0dc91869f197d2df69ceaecce0889931e18de67 17-Sep-2012 Dmitry Vyukov <dvyukov@google.com> tsan: reserve msb in stack depot id's (required for msan)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164010 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_stackdepot_test.cc
726fa673ede563a4785b5a44110b36071c4295b1 11-Sep-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] test 64-bit allocator only on suitable targets

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163615 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
3f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2a 11-Sep-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add new lit testsuite: check-sanitizer that runs unit tests for sanitizer_common runtime (shared between ASan and TSan)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163610 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
it.cfg
it.site.cfg.in
anitizer_test_main.cc
d7ed1f09f316628b2d981a1d8c2cf0f5af30e90e 11-Sep-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] fix warnings reported by gcc. Update the list of targets to check lint for

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163608 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_stackdepot_test.cc
374520df0a4fde014380298d00bad4064de3e476 11-Sep-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] remove custom Die/CheckFailed from allocator testlib

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163604 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_testlib.cc
678b2fe068a1ef87317ca0199cf24379a0f94e6e 31-Aug-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Resolve fixme: break dependency of sanitizer_common tests on TSan RTL

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162984 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_flags_test.cc
ff35f1d82b4f145b3477ef27a7a2e7b63c486988 30-Aug-2012 Dmitry Vyukov <dvyukov@google.com> tsan: use stack depot to describe heap blocks


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162902 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_stackdepot_test.cc
1b37017f0216d0b8f3ae3a7dea8b3cc20d74db25 30-Aug-2012 Dmitry Vyukov <dvyukov@google.com> asan/tsan: first version of "stack depot"


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162897 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_stackdepot_test.cc
d883c8007ea8b5ffad10d82a66b1bb262e109705 27-Aug-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] align allocation sizes in low level allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162676 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_flags_test.cc
557042cfb5c2b1b7906dbfe968e88894a2fdb50e 23-Aug-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix new memory allocator
Deallocate: drain blocks to central cache if cached too much (instead of never drain).
Allocate: batch allocate fixed amount of blocks (instead of all blocks).
This significantly reduces memory consumption of large heavy-multithreaded programs.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162447 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
6611abe0c2737a37c1c69f0527a35bb34875221d 21-Aug-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] define InternalScopedBuffer to replace large arrays on stack. It is defined analogous to similar class in tsan and should replace it.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162262 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
cbeeced8f995ca0689131af2c4ad864e9e8fd88f 15-Aug-2012 Dmitry Vyukov <dvyukov@google.com> tsan: add some more tests for memory allocator


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161950 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
06c2e8fa4e4be2bddeade510b263b12f80945e4f 19-Jul-2012 Kostya Serebryany <kcc@google.com> [tsan] fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160504 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_testlib.cc
47b5f041d50c59f26b61c7e704de9b4beaea720a 19-Jul-2012 Kostya Serebryany <kcc@google.com> [tsan] minor fixes in tsan allocator and its testlib. Now runs fine with chrome

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160503 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_testlib.cc
389b74b723c0222aa3a485cc5d0127a401952f35 18-Jul-2012 Kostya Serebryany <kcc@google.com> [tsan] minor enhancements in the new tsan allocator and a test malloc replacement library that can be linked to any program to replace malloc (tested on spec2006)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160436 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
anitizer_allocator64_testlib.cc
219f20b5985371c4cfcef3e6f85fb94e8f3bc0e6 18-Jul-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] add missing unit test for flag parsing (forgot to run svn add before)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160428 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_flags_test.cc
0dc3177d6c54fafb9577254a93b2f3c4169129d7 16-Jul-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] implement straightforward nlogn sorting, as qsort() may call malloc, which leads to deadlock in ASan allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160262 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_common_test.cc
deafb6bd5252c2d6ccef070ea572b04329657ea9 06-Jul-2012 Kostya Serebryany <kcc@google.com> [tsan] start using AllocatorCache in CombinedAllocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159825 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
anitizer_list_test.cc
541c620af9db64d523f013b45dfce97a8e14878c 06-Jul-2012 Kostya Serebryany <kcc@google.com> [tsan] implement SizeClassAllocatorLocalCache (part of tsan allocator)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159823 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
816398d9584ff3ce2389030c810c20f3bfdcfdf8 06-Jul-2012 Kostya Serebryany <kcc@google.com> [tsan] use intrusive list in the new tsan allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159814 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_list_test.cc
5a2327c20ab8ff8185faf51d7abc72c012a763f9 06-Jul-2012 Kostya Serebryany <kcc@google.com> [tsan] add intrusive list to be used in tsan allocator, etc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159812 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_list_test.cc
a3eca8192505f4796194dd24eb051019f402de99 29-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan/asan: add SpinMutex to sanitizer_common


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159439 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
anitizer_allocator_test.cc
19d9bfe7a63f9d76589f9b3ac5a8e3c525eb678a 29-Jun-2012 Kostya Serebryany <kcc@google.com> [tsan] added CombinedAllocator for tsan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159432 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
fc6c80e9402a8798e6426df7df3a867d541ca705 26-Jun-2012 Kostya Serebryany <kcc@google.com> [tsan] added LargeMmapAllocator, a part of the new tsan allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159204 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
225f53194082f475a5d21780344ff79a2a387c13 25-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan: remove internal allocator, switch to sanitizer_common one.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159142 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator_test.cc
16441b0c13eac81b3871912c1585b46e14c64477 25-Jun-2012 Kostya Serebryany <kcc@google.com> [tsan] minor changes in tsan allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159139 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
025ea90c9e15a18d29b6aab70f8192ae9c1beea4 25-Jun-2012 Kostya Serebryany <kcc@google.com> [tsan] a better CHECK for OOM in the new allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159122 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
6dd4ae360b9dde496ad2fa12b0fc12bbc3bf1571 22-Jun-2012 Kostya Serebryany <kcc@google.com> [tsan] add metadata to the new tsan allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159002 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
8ebf84cd52a571d47183c0f2a6bf73b25752d8d8 22-Jun-2012 Kostya Serebryany <kcc@google.com> [tsan] more code for a specialized tsan allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158991 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc
c375657778e8a72d566e29951060b7eadc749b0d 21-Jun-2012 Kostya Serebryany <kcc@google.com> [tsan] first step in implementing a custom allocator for tsan (and msan) which saves precious shadow

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158913 91177308-0d34-0410-b5e6-96231b3b80d8
anitizer_allocator64_test.cc