Evgeniy Stepanov
|
477e88ee9e
|
[sanitizer] Slightly lower allocator test memory consumption.
This way it fits on a random 1G device.
llvm-svn: 175513
|
2013-02-19 13:38:27 +00:00 |
Dmitry Vyukov
|
6e406cda4b
|
tsan: implement malloc stats querying
llvm-svn: 173332
|
2013-01-24 09:08:03 +00:00 |
Evgeniy Stepanov
|
99d91289b6
|
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.
llvm-svn: 172421
|
2013-01-14 15:12:26 +00:00 |
Evgeniy Stepanov
|
e375a1f036
|
Remove thread-locals from sanitizer_common tests.
Not supported on Android.
llvm-svn: 172408
|
2013-01-14 14:06:58 +00:00 |
Dmitry Vyukov
|
ecd73d36d4
|
asan/tsan: faster memory allocator
replace lists with arrays
llvm-svn: 172217
|
2013-01-11 16:41:19 +00:00 |
Kostya Serebryany
|
ad24c58e16
|
[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
llvm-svn: 171055
|
2012-12-25 07:50:35 +00:00 |
Kostya Serebryany
|
db3250b8b3
|
[sanitizer] fix gcc warnings, enable one tests under asan_allocator2
llvm-svn: 171036
|
2012-12-24 14:53:13 +00:00 |
Kostya Serebryany
|
fc7de2910c
|
[sanitizer] make LargeMmapAllocator::GetBlockBegin faster by not using a linked list
llvm-svn: 171035
|
2012-12-24 14:35:14 +00:00 |
Kostya Serebryany
|
ebb23c8cfa
|
[sanitizer] rework the size class map in the sanitizer allocator: make the differences between size classes more uniform.
llvm-svn: 171031
|
2012-12-24 13:41:07 +00:00 |
Kostya Serebryany
|
2abbce6701
|
[sanitizer] one more stability fix in 64-bit allocator
llvm-svn: 170498
|
2012-12-19 06:51:45 +00:00 |
Kostya Serebryany
|
12676268fa
|
[sanitizer] fix LargeMmapAllocator::GetBlockBegin
llvm-svn: 170434
|
2012-12-18 14:56:38 +00:00 |
Kostya Serebryany
|
c8208c5258
|
[sanitizer] fix a bug that has crept into the sanitizer allocator and caused SEGV on allocations between 1Mb and 2Mb, improve the test
llvm-svn: 170274
|
2012-12-15 18:36:23 +00:00 |
Alexey Samsonov
|
6a68a9117b
|
[Sanitizer] remove extra typename
llvm-svn: 170208
|
2012-12-14 15:37:35 +00:00 |
Kostya Serebryany
|
673c052631
|
[sanitizer] add AllocatorLeakTest
llvm-svn: 170206
|
2012-12-14 14:20:29 +00:00 |
Dmitry Vyukov
|
51b6e07deb
|
tsan: fix lint warning
llvm-svn: 170202
|
2012-12-14 13:46:03 +00:00 |
Dmitry Vyukov
|
34aef74a4d
|
tsan: disable allocator tests in debug build
llvm-svn: 170187
|
2012-12-14 10:17:22 +00:00 |
Dmitry Vyukov
|
ed6d54368c
|
tsan: comment out debug output in test
llvm-svn: 170186
|
2012-12-14 10:12:14 +00:00 |
Kostya Serebryany
|
2ce42e0aef
|
[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
llvm-svn: 170097
|
2012-12-13 05:05:11 +00:00 |
Kostya Serebryany
|
e29883c10a
|
[sanitizer] add OnMap/OnUmap callbacks to the allocator interface
llvm-svn: 169985
|
2012-12-12 14:32:18 +00:00 |
Kostya Serebryany
|
52a3b92abd
|
[sanitizer] try not to use libc mem* functions in sanitizer_common tests (conflicts with our own interceptors)
llvm-svn: 169595
|
2012-12-07 10:13:10 +00:00 |
Kostya Serebryany
|
6d2d30f61d
|
[asan/msan] one more test for 32-bit allocator + minor code simplification
llvm-svn: 169507
|
2012-12-06 14:39:41 +00:00 |
Kostya Serebryany
|
c14ae88b08
|
[asan/msan] add BulkAllocate to the 32-bit allocator (and a test)
llvm-svn: 169506
|
2012-12-06 14:27:32 +00:00 |
Kostya Serebryany
|
9f84eecc9e
|
[asan/msan] add GetBlockBegin to the 32-bit allocator (+test)
llvm-svn: 169499
|
2012-12-06 13:13:58 +00:00 |
Kostya Serebryany
|
2731cb23b1
|
[asan/msan] one more test for 32-bit allocator
llvm-svn: 169497
|
2012-12-06 13:00:11 +00:00 |
Kostya Serebryany
|
2044135dca
|
[asan/msan] new 32-bit allocator, basic functionality so far
llvm-svn: 169496
|
2012-12-06 12:49:28 +00:00 |
Kostya Serebryany
|
571232b8cf
|
[tsan] get rid of *allocator64* files, moving everything to *allocator* files. This will help with the 32-bit allocator implementation and testing
llvm-svn: 169368
|
2012-12-05 10:09:15 +00:00 |
Kostya Serebryany
|
dab61684ef
|
[tsan] remove unused InternalAllocBlock as part of larger refactoring
llvm-svn: 169123
|
2012-12-03 11:57:01 +00:00 |
Alexey Samsonov
|
e6704ee109
|
[Sanitizer] define InternalScopedBuffer to replace large arrays on stack. It is defined analogous to similar class in tsan and should replace it.
llvm-svn: 162262
|
2012-08-21 08:13:37 +00:00 |
Dmitry Vyukov
|
513f0238d8
|
tsan/asan: add SpinMutex to sanitizer_common
llvm-svn: 159439
|
2012-06-29 17:32:18 +00:00 |
Dmitry Vyukov
|
c598de93bd
|
tsan: remove internal allocator, switch to sanitizer_common one.
llvm-svn: 159142
|
2012-06-25 15:09:24 +00:00 |