History log of /external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5d71de26cedae3dafc17449fe0182045c0bd20e8 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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
2d1fdb26e458c4ddc04155c1d421bced3ba90cd0 29-May-2014 Stephen Hines <srhines@google.com> Update compiler-rt aosp/master for 3.5 (r209699) rebase.

Change-Id: I158a30186f0faea2e2400e9dfdd878db2eb40e90
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
8f0c5bdd9650256501bad9fc5dedc977f4ca2247 26-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> Rename SpinMutex::AssertHeld to CheckLocked, for consistency with BlockingMutex.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193447 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
cde3bae2a43eeb2ce086436833d4f24ab1e69005 08-Aug-2013 Dmitry Vyukov <dvyukov@google.com> tsan: better diagnostics for invalid addresses passed to free()


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187980 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
53fbbf419e1db6c03132650f189d725d23f51a42 05-Aug-2013 Alexey Samsonov <samsonov@google.com> Lint fixes

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187726 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
5c48a8c4a8b3f7cd3f03f26c6aadc0ee606fc9b7 02-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Allocator statistics interface and malloc hooks.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187653 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
cd571e07fd1179383188c70338fa0dc1c452cb19 06-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Implement __lsan_ignore_object().

Leak annotation similar to HeapChecker's IgnoreObject().

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183412 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
ba2169a467abf86c15d4b19a5ed4d978c584a98e 31-May-2013 Sergey Matveev <earthdok@google.com> [lsan] Use the fast version of GetBlockBegin for leak checking in LSan and ASan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182994 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
5e97ba38b00eb843a55189bb913b445cbe620894 29-May-2013 Timur Iskhodzhanov <timurrrr@google.com> Fix MSVC W3 compiler warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182857 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
8d6854a62ee044c19692a3a9e4870f57c30fc887 16-May-2013 Kostya Serebryany <kcc@google.com> [sanitizer] fix gcc build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
c7014ed50a8aecac83ab7767a76efe8a04cea680 16-May-2013 Kostya Serebryany <kcc@google.com> [sanitizer] fix a gcc warning

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181992 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
4b450f46cac42d473ffa4ff2d8d1395706b9c934 20-Mar-2013 Dmitry Vyukov <dvyukov@google.com> asan/tsan: reduce per-thread memory allocator caches
256 blocks (which is 512 in reallity) seems to be too big cache,
reducing the size reduces memory consumption but does not degrade performance.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177502 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
d39a34ee33aae73fdde065f784bdc19f67b91ae2 14-Mar-2013 Kostya Serebryany <kcc@google.com> [asan] remove one redundant malloc stress test, unify the usage of ASAN_LOW_MEMORY macro in tests, slightly reduce test memory usage (all to make 32-bit runs consume less RAM)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177069 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
7811b4afded19781f940a733d6c64201e5f4b987 12-Mar-2013 Kostya Serebryany <kcc@google.com> [sanitizer] simplify the allocator's SizeClassMap: do not require an extra template parameter, instead compute it in flight. No functionality change

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176853 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
cf80871bd777c8eca7541fe5aa1db2c2711dd24c 01-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix check failure in SizeClassMap::Print.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176338 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
f155fccd1f26f771c9f7f265a4c30faebdfb214f 26-Feb-2013 Kostya Serebryany <kcc@google.com> [asan] a bit stricter lint for CHECK vs CHECK_XX (these CHECK_XX really help debugging!)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176085 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
2b10d3944d911c07f2a10cf248300260ed67454a 08-Feb-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan] Switch Windows to allocator v2, also fixing some build errors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174707 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
3661bae401ea7fb8d61f20466f194ef90d7bdaa2 07-Feb-2013 Kostya Serebryany <kcc@google.com> [sanitizer] always allocate 16-byte aligned chunks of memory

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174617 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
3c5ebf664496fb3857ff3e2737d9cb4c2d4b5e4d 07-Feb-2013 Alexander Potapenko <glider@google.com> [sanitizer_common] Fix lint warnings.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174616 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
aeedfd61099514b70b2b9f9f6bbc03b1581fda76 07-Feb-2013 Alexander Potapenko <glider@google.com> [ASan] Fix a compilation warning.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174604 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
6a11cc1bc665f13a0fcafe4a6a84761216675af7 07-Feb-2013 Alexander Potapenko <glider@google.com> [ASan] Implement asan_mz_size(), asan_mz_force_lock() and asan_mz_force_unlock() for allocator2.
Switch to allocator2 on Darwin.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174603 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
8ceeec4f343768b199e7c891865029360b7225dc 04-Feb-2013 Dmitry Vyukov <dvyukov@google.com> asan/tsan: fix compilation errors/bugs on Windows where long is 32-bit even in 64-bit mode


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174312 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
53becd87b874cda5f3ae29e00538fb41d336dbb9 28-Jan-2013 Timur Iskhodzhanov <timurrrr@google.com> Use the correct order of NOINLINE vs ret type to fix Windows build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173694 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
65199f1b253c4bfb225805629217acb8f0b1e185 25-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] fix calloc overflow in asan/tsan/msan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173441 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
ed847e39a3f993e52fd0a290d08cadf723951ea3 23-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] increase the minimal mmap size in allocator to 2^16; fix the asan Mac build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173261 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
ce8674f1b8ff975f5fbb8cddc7b704d102c34a01 15-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: faster thead-local cache for memory allocator


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172521 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
8ef9ac9a6a9866c2119fb74fa1ca212dc53a46cf 14-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan/tsan: mmap shadow memory before allocating memory (otherwise other threads can access non yet allocated shadow)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172395 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
d618867d19e4d278e8040e1529f50287c6a4eea5 14-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan/tsan: fix memory allocator statistics


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172390 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
b48224c8d19cac76f2af1eba158b9ae26ed1608a 14-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan/tsan: faster memory allocator
1. Increase size classes from 32k to 128k
2. Use lock-free stack in central cache
3. Use blocking mutex when allocate new memory with mmap


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172388 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
ce17384b74b0dda2e246ce1dedf29b5d46df9c60 11-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: always pass allocator cache to Allocate()


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172193 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
800344cb2d3a71f4c05ac2d330224720292c29df 10-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] better statistics for the large allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172069 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
3bf34d62f2e9458321f9a3392426e862e1bd1148 10-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan/tsan: fix comment


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172064 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
4b48f4563ca25d8915155acc5837e195cf0e5c57 27-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] add statistics to the allocator; fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171161 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
111a0716d714aa2597e333d160cf1f271695bab7 26-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] asan_allocator2: store the user requested size in just 32 bits (larger sizes use metadata). This allows to put one more 32-bit field into the chunk header

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171089 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
f1877cf0a314f407ac535ab1606fdac4f9b05026 25-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] add a test for right OOB with special large sizes. Fix this test in asan_allocator2. More test tweaking for allocator2

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171058 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
cab6133c5d7478e96882cb54467e29b3716c0d89 21-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] asan_allocator2 fix two asserts that happen on full chrome: a) memalign called with 0 size and large alignment and b) malloc called after TSD has been destructed

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170900 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
aaf72105312691e623c7cb05333a7f0e698f62f8 21-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] mmap less on every size class to make the allocator more friendly to small programs

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170895 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
2592d766401edb3d36676f1f522592f1d5fb2b07 19-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] asan_allocator2: improve FindHeapChunkByAddress to find memory chunks to the left of a given address. Almost all tests pass with the new allocator now, only 6 are left to fix.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170511 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
9bfe78f7d4f9af3cdacb4d34bd7b4fead27dcda5 13-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] introduce MmapFixedOrDie and use it in SizeClassAllocator64

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170099 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
19313d90bf76ad7567f6c2400ab5b5d40ab892c3 07-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] fix the build on ancient gcc which has stricter rules about what can be put on TLS. Long term, we absolutely must build the run-times with the fresh target clang

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169593 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
72cdb6786dd641c75bbf0f1788d6a75434212fad 06-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] POD-ify the allocator cache

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169514 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
365e733a51252d689c49e87f006e40b8c4216e40 06-Dec-2012 Kostya Serebryany <kcc@google.com> [asan/msan] refactor allocator's BulkAllocate (move to AllocatorFreeList)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169503 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
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
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
43811a14504f1ff473b40c194a3e9054e2ea46a4 04-Dec-2012 Kostya Serebryany <kcc@google.com> [tsan] refactoring and comment changes in sanitizer_common/sanitizer_allocator{,64}.h. No functionality change

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169234 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h