| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 225546
|
| |
|
|
| |
llvm-svn: 225323
|
| |
|
|
|
|
|
|
|
|
|
| |
Now ASan deactivation doesn't modify common or ASan-specific runtime
flags. Flags stay constant after initialization, and "deactivation"
instead stashes initialized runtime state, and deactivates the
runtime. Activation then just restores the original state (possibly,
overriden by some activation flags provided in system property on
Android).
llvm-svn: 224614
|
| |
|
|
| |
llvm-svn: 224577
|
| |
|
|
|
|
| |
lsan: speeds up lsan start-up time by ~25%
llvm-svn: 224469
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Turn "allocator_may_return_null" common flag into an
Allocator::may_return_null bool flag. We want to make sure
that common flags are immutable after initialization. There
are cases when we want to change this flag in the allocator
at runtime: e.g. in unit tests and during ASan activation
on Android.
Test Plan: regression test suite, real-life applications
Reviewers: kcc, eugenis
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D6623
llvm-svn: 224148
|
| |
|
|
|
|
|
|
|
| |
Allow user memory in the first TB of address space.
This also enabled non-pie binaries and freebsd.
Fixes issue:
https://code.google.com/p/thread-sanitizer/issues/detail?id=5
llvm-svn: 220571
|
| |
|
|
| |
llvm-svn: 220528
|
| |
|
|
| |
llvm-svn: 212071
|
| |
|
|
|
|
| |
64-bit atomics make porting of asan to 32-bits platforms problematic.
llvm-svn: 209744
|
| |
|
|
|
|
| |
(https://bugzilla.kernel.org/show_bug.cgi?id=67651) is almost unusable with asan even with this workaround (too slow), so this workaround makes no sense. The asan/msan bootstrap bot was changed to use a non-buggy kernel
llvm-svn: 200217
|
| |
|
|
|
|
| |
to 2^18. This is a partial workaround for the fresh Kernel bug https://bugzilla.kernel.org/show_bug.cgi?id=67651
llvm-svn: 200197
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on 64-bit.
Summary:
Implement TwoLevelByteMap and use it for the internal allocator on 64-bit.
This reduces bss on 64-bit by ~8Mb because we don't use FlatByteMap on 64-bits any more.
Dmitry, please check my understanding of atomics.
Reviewers: dvyukov
Reviewed By: dvyukov
CC: samsonov, llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2259
llvm-svn: 195637
|
| |
|
|
|
|
| |
Secondary allocator is mmap-based, so the memory is already zeroed.
llvm-svn: 195571
|
| |
|
|
|
|
| |
for lsan)
llvm-svn: 195549
|
| |
|
|
| |
llvm-svn: 193447
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
llvm-svn: 192885
|
| |
|
|
|
|
| |
(controlled by the allocator_may_return_null flag)
llvm-svn: 190127
|
| |
|
|
| |
llvm-svn: 187980
|
| |
|
|
| |
llvm-svn: 187726
|
| |
|
|
| |
llvm-svn: 187653
|
| |
|
|
|
|
|
| |
Also clean up LSan code, fix some comments and replace void* with uptr
to bring down the number of reinterpret_casts.
llvm-svn: 184700
|
| |
|
|
|
|
| |
Leak annotation similar to HeapChecker's IgnoreObject().
llvm-svn: 183412
|
| |
|
|
| |
llvm-svn: 182994
|
| |
|
|
|
|
| |
required for LeakSanitizer to work faster. Also fix lint.
llvm-svn: 182917
|
| |
|
|
| |
llvm-svn: 182857
|
| |
|
|
|
|
| |
later replaced with a more memory-efficient implementation on 64-bit.
llvm-svn: 182234
|
| |
|
|
| |
llvm-svn: 182006
|
| |
|
|
|
|
| |
SanitizerAllocator64::PopulateFreeList().
llvm-svn: 182002
|
| |
|
|
| |
llvm-svn: 181992
|
| |
|
|
|
|
| |
performance optimization (use 32-bit division when possible). Improve the benchmarks that checks for performance of GetBlockBegin/GetMetaData
llvm-svn: 181989
|
| |
|
|
|
|
| |
Patch by Sergey Matveev
llvm-svn: 179007
|
| |
|
|
|
|
|
| |
256 blocks (which is 512 in reallity) seems to be too big cache,
reducing the size reduces memory consumption but does not degrade performance.
llvm-svn: 177502
|
| |
|
|
| |
llvm-svn: 177147
|
| |
|
|
|
|
| |
ASAN_LOW_MEMORY macro in tests, slightly reduce test memory usage (all to make 32-bit runs consume less RAM)
llvm-svn: 177069
|
| |
|
|
|
|
| |
footprint. There is no all-size-fits-all constant here, but this change is positive or neutral on several large apps I've tested
llvm-svn: 176855
|
| |
|
|
|
|
| |
template parameter, instead compute it in flight. No functionality change
llvm-svn: 176853
|
| |
|
|
|
|
| |
Sergey Matveev)
llvm-svn: 176799
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
llvm-svn: 176552
|
| |
|
|
| |
llvm-svn: 176338
|
| |
|
|
|
|
| |
debugging!)
llvm-svn: 176085
|
| |
|
|
| |
llvm-svn: 174707
|
| |
|
|
| |
llvm-svn: 174617
|
| |
|
|
| |
llvm-svn: 174616
|
| |
|
|
| |
llvm-svn: 174604
|
| |
|
|
|
|
|
|
| |
asan_mz_force_unlock() for allocator2.
Switch to allocator2 on Darwin.
llvm-svn: 174603
|
| |
|
|
|
|
| |
in 64-bit mode
llvm-svn: 174312
|
| |
|
|
| |
llvm-svn: 173694
|
| |
|
|
| |
llvm-svn: 173441
|
| |
|
|
| |
llvm-svn: 173332
|