History log of /external/compiler-rt/lib/asan/asan_mac.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e9f5785228eb19e64719a1a3e258d12639479c8c 06-Sep-2012 Alexander Potapenko <glider@google.com> Use the return value of dladdr() to avoid Clang warning.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163311 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
2b939c3abc8b7713ef28000bd768ca6d77445f45 28-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] more refactoring to move StackTrace to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162752 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
c3390df6670cb166119b961eb27a033fb9073496 28-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] some renaming before we move StackTrace into sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
eb8c46e419f4c6f01d1b1a0d1b96cc51a61ecbc3 24-Aug-2012 Alexander Potapenko <glider@google.com> If the program is linked to a dynamic ASan runtime which is not present in DYLD_INSERT_LIBRARIES
(which, in turn, is required for our interceptors to take effect), re-exec the program with
DYLD_INSERT_LIBRARIES set.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162547 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
af198e421ea198c5f9fa8cd691aa9a209b3d96a0 23-Aug-2012 Alexander Potapenko <glider@google.com> Re-implement the wrappers for libdispatch functions using blocks where appropriate
(kudos to Anna Zaks for a good example).
This simplifies the code much and lets us not implement internal parts of libdispatch.

All ASan tests from t32 and t64 should pass with the dylib runtime now.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162439 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
0ffc227f91b068c78908f735a4846f92e339a337 21-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162258 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
2483ce3e635515d907c0cd8c97db315142fb28db 20-Aug-2012 Alexander Potapenko <glider@google.com> Dynamic interceptors for dispatch_async and dispatch_after.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162202 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
b09dd34786713a150fed5c5ab1529f01de0e2bc0 20-Aug-2012 Alexander Potapenko <glider@google.com> Minor refactoring: reduce code duplication by introducing a macro for dispatch_sync_f, dispatch_async_f, dispatch_barrier_async_f bodies.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162199 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
37c4853762c6123a5fef0042d8f65193791b355c 15-Aug-2012 Alexander Potapenko <glider@google.com> Move the prototype of __CFInitialize to asan_mac.h so that asan_malloc_mac.cc may use it in the dynamic library mode.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161945 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
b0bb7fb31301ee9ac9cf41f21d3a19987dc30609 30-Jul-2012 Alexey Samsonov <samsonov@google.com> [ASan] fix cmake build warning

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160957 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
75b19ebf25af204cf209d108997272822241d6da 23-Jul-2012 Alexander Potapenko <glider@google.com> Intercept CFAllocator for each thread in the program.
Test that child threads use the ASan allocator, that allocated memory can be passed to another thread and deallocated on it.
This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=81


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160630 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
cb8c4dce691097718d5af41b36899b72ef4b1d84 09-Jul-2012 Alexey Samsonov <samsonov@google.com> [ASan] Use common flags parsing machinery.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159933 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
bf9f6fbf015f687784e26f26570924be4ca3924f 06-Jul-2012 Alexander Potapenko <glider@google.com> A portable way to check whether __CFInitialize has been called: compare kCFAllocatorSystemDefault._base._cfisa to 0.
This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=87 on both Lion and Snow Leopard.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159821 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
d079db6dfbf3b0ec5fa1cc8d093e0dae6f970bf8 06-Jul-2012 Alexander Potapenko <glider@google.com> Do not check for __CFRuntimeClassTableSize on non-10.6 systems, where this symbol is private.
This change may cause http://code.google.com/p/address-sanitizer/issues/detail?id=87 to re-appear on Lion.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159819 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
decaec9ee3177b5e81e358ad8e93ab70b38a1cc0 05-Jul-2012 Alexander Potapenko <glider@google.com> Fix http://code.google.com/p/address-sanitizer/issues/detail?id=87 by making sure we replace the default CFAllocator only after __CFInitialize has been called.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159749 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
b4fefa713da3dabda1cd83ae4182c71f1683f02c 28-Jun-2012 Alexey Samsonov <samsonov@google.com> [ASan] cleanup: trailing semicolons, trailing colons in enums

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159338 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
e205a9daec9ec4afed956cf5455889725b9192fb 21-Jun-2012 Alexander Potapenko <glider@google.com> Actually intercept free() to ensure that the deallocations caused by other functions directly calling it are routed to our allocator.
For the allocations that do not belong to any malloc zone check whether they're padded with a pointer to ASan's CFAllocator. If so, free the original (unpadded) pointer.
This should fix AddressSanitizerMac.NSURLDeallocation and issue 70.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158863 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
f607fc1c67a613a59a1db3c80c5d1322e1978102 14-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move rest of mmap routines to common sanitizer runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158452 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
3dbeabb3446f203156ae03d957de9bdf50933ae4 14-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move portable GetEnv to common sanitizer runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158451 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
996651d09e56caa91ffcc33bf1a13a283cfcd5e2 14-Jun-2012 Alexey Samsonov <samsonov@google.com> [ASan] don't include deleted header

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158448 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
e5931fd7d2a74fd7fb60bd8d7f644cca51a24364 07-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] factor out GetThreadStackTopAndBottom from ASan runtime to common.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158140 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
6895adc39c4e09371154c8037366ad4464163ed0 07-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] __asan::AsanProcMaps -> __sanitizer::ProcessMaps.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158139 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
a25b3463477d2a825df4f656001fc07c594b35ac 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Switch to common mmap/munmap routines in ASan run-time.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158078 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
e0cff0bc20ae51790c8edfbceb817e18ebf5355e 06-Jun-2012 Kostya Serebryany <kcc@google.com> [asan] make tid u32 instead of int

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158074 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
675293d458c9f6c797a7211c11438eb9bfcfe9bb 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [ASan] match type of arguments to format string on Mac.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158068 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
47657ce6cbac2fa93d0fd765c5d2872443b50e87 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [ASan] Use __sanitizer::Die() in ASan runtime.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158051 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
b9a30e0799787a99147e2587ef5ecc8c5f224160 05-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] remove using namespace __sanitizer lines

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157999 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
1f11d31faa5ed89b74f7d543b1182fe8de198be5 05-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] add sanitizer_posix.cc. Move more various functions into sanitizer_libc: sscanf, munmap, memchr

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157994 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
3f46cf42b0f8e0667a3bea88cf871ebd4dc0ecdf 05-Jun-2012 Alexey Samsonov <samsonov@google.com> [ASan] s/size_t/uptr in asan_mac.cc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157993 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
2221f553886c37401b5d84923634ebf04bc482f1 05-Jun-2012 Alexey Samsonov <samsonov@google.com> [ASan] use internal_{close,read,write} in ASan runtime.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157991 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
9552db72ce37a9f090be4d9fecfbe75458c6d7bb 05-Jun-2012 Alexey Samsonov <samsonov@google.com> [ASan] use internal_open from sanitizer_libc in ASan runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157986 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
ae4d9caa4f47fa6abcd641719e9f520622940c17 04-Jun-2012 Alexey Samsonov <samsonov@google.com> Created files sanitizer_linux.cc and sanitizer_mac.cc for platform-specific implementations of common functions. Turned asan_mmap into __sanitizer::internal_mmap.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157930 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
ee3925515e4c7966f3ef489f687aa7e5692806a9 31-May-2012 Kostya Serebryany <kcc@google.com> [asan] more renaming

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
3f4c3875c42078e22c7e5356c5746fd18756d958 31-May-2012 Kostya Serebryany <kcc@google.com> [asan] more renaming

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157746 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
c99f70044d64482adbc1053f04b32bdbf0d4c057 23-May-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Move AsanShadowRangeIsAvailable() from mac to posix.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157326 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
f7ceaad2919d2e26e9edea29232bc9dd8f145c42 09-Apr-2012 Alexey Samsonov <samsonov@google.com> [ASan] remove dispatch.h header once again - it's not present on Leopard, and we don't want to break the build of compiler-rt there. See https://trac.macports.org/ticket/33362

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154326 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
ebb9702cff96192c6a6ea963037929ca7ed60eae 29-Mar-2012 Alexander Potapenko <glider@google.com> Add internal_memset and replace the uses of REAL(memset) with it where the performance allows.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153641 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
a28aa80ad371d5ab8d7ddd244ad1d695ded29a7e 21-Mar-2012 Alexey Samsonov <samsonov@google.com> [asan]: substitute extern decls with system header in asan_mac.cc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153182 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
beba6448539095b67cab266d09cd7b7d313b8c3d 21-Mar-2012 Alexey Samsonov <samsonov@google.com> [asan] merge mac-specific interceptors into one function

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153180 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
5cf832dc0a6566ae4bb8d48b1f41da623d2c2c1a 21-Mar-2012 Alexey Samsonov <samsonov@google.com> [asan]: remove asan_mac.h

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153179 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
64ce2db7c838cd95315f7a4428e8a628eaa3e2fc 21-Mar-2012 Alexey Samsonov <samsonov@google.com> [asan]: start removing os-specific asan_mac.h - move inclusion of mac system header to asan_mac.cc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153178 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
38dd4ed885e714c376466f6fe0d69f5f22d37014 20-Mar-2012 Alexey Samsonov <samsonov@google.com> [ASan]: remove GetMacosVersion from asan_mac.h header

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153084 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
650a1e163ef05b89f40143eb8b9af4f64ad0b68d 15-Mar-2012 Kostya Serebryany <kcc@google.com> [asan] one more -Wnull-conversion fix

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152773 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
afaf71f0b2c6455614e2ab8f208312dea0871fe9 15-Feb-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: simplify IntervalsAreSeparate function

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150569 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
895b3872acb5bcccb1769ea69d37dd33c722f99d 13-Feb-2012 Alexander Potapenko <glider@google.com> Fix compilation on Mac.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150400 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
f73a6a3f81573ba85a5e29955980818b18b0a58a 13-Feb-2012 Alexander Potapenko <glider@google.com> Move the non-trivial implementation of AsanShadowRangeIsAvailable to asan_mac.cc
to avoid crashes on Linux and Win.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150398 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
5b29018cf422e7711fb760b733c32127397a43fc 08-Feb-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: start factoring out interception machinery

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150083 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
09672caefb5694f1981a1712fdefa44840a95e67 08-Feb-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: replace all "real_X" calls with "REAL(X)"

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150073 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
f2598fc21bf651d23feab396a7581d48c01c3be5 02-Feb-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: Add macro for definition/declaration of interceptors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
83c19fcacb6f2a3304ddb64b7e928a2e9c98a8d0 31-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] remove dead code

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149392 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
59dc578df0de177b44c8c78f69d73735e38e5c14 31-Jan-2012 Alexander Potapenko <glider@google.com> Implement GetMacosVersion() to obtain the OS X version at runtime.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149382 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
9b993e8cd0f8964782ee93524603d0c53adc2249 30-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] ifdef/include cleanup

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149281 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
ddf50a3e7a28c2ab12243e72b35ccf8c04f15b49 26-Jan-2012 Alexander Potapenko <glider@google.com> Fix a bug in AsanProcMaps on Mac: on 64 bits the program was trying to read twice as many segment load commands as the binary actually contained.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149063 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
431e51782d62d1257348e41e24da6b544fe70507 23-Jan-2012 Alexander Potapenko <glider@google.com> Wrap CFStringCreateCopy to prevent copying constant CF strings.
This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=10



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148696 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
3feef82eab6d5f0ace384a670bfb5988e0c165a0 19-Jan-2012 Alexander Potapenko <glider@google.com> Minor fixes of the AsanProcMaps code on Mac:
-- make the load command scan linear (instead of quadratic)
-- do not create a nested AsanProcMaps instance for each address lookup
-- more comments


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148472 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
9cfa194cc62026fc7c6e82f7303eee8ad4d10cf4 19-Jan-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> EHABI-based stack trace on ARM.

The change removes the unused FLAG_fast_unwind, and forces EHABI-based unwind
on ARM, and fast (FP-based) unwind everywhere else.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148468 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
8a34d384255f9bf4c2a9b03a4df81b9af57124d8 18-Jan-2012 Alexander Potapenko <glider@google.com> Implement AsanProcMaps for Mac OS. The code from sysinfo/ is not needed anymore and should be cleaned up.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148385 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
1346ced2eb8d10305e8d98496d9006cfbbad1548 17-Jan-2012 Alexander Potapenko <glider@google.com> Define the bounds of the branch allocator memory space for 32-bit apps.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148303 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
55cdfc6c5af92560bc0623b5a0d70af71511c3c8 17-Jan-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: create AsanThreadSummary together with AsanThread (in parent thread)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148286 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
4dd8ba8238b1b698953628affe6e5b2edf3b3e3f 16-Jan-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: fix recently introduced lint errors and broken test on Mac.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148235 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
3281209790b5e543c79acb2f5008d1df77fb76d9 13-Jan-2012 Alexander Potapenko <glider@google.com> This patch adds two methods, __asan_allocate_island and __asan_deallocate_island
and switches our interceptors to using them instead of the default
vm_allocate-based approach used by mach_override_ptr.

To simplify the code, a fixed memory mapping is used for the allocation pool --
note that we can't mmap an arbitrary chunk of memory, because the shadow memory hasn't been mapped yet
(for the reasons discussed in http://code.google.com/p/address-sanitizer/issues/detail?id=24, we cannot map the shadow earlier)

The patch drops the program startup time from several second to half a second,
which speeds up the execution of ASan tests noticeably.
Because of the virtual memory size occupied by the programs it's hard
to speed up the shutdown time, which would've also helped the tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148116 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
1e316d7f488a75312539629e9d937e156280eeb6 13-Jan-2012 Alexander Potapenko <glider@google.com> This patch moves the code reading /proc/self/environ into AsanGetEnv
in asan_linux.cc, because /proc is unavailable on Mac.
Instead the Mac version of AsanGetEnv iterates over the array of
environment variables obtained from _NSGetEnviron()



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148114 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
af3441580555ceed092170232cd5f2cc180f19f4 11-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] get rid of the scary TSD destructor code. Now, we store the leaky AsanThreadSummary in TSD and never remove it from there.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147910 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
d55f5f8c413622db4bd28b5cca9bfeb4d61564e0 10-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] move OS-dependent code away from asan_lock.h

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147878 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
0ecf5eb729dd81a43f8585cb438d3cb2a35899ed 10-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] don't include unistd.h in the headers

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147811 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
a7e760a53bc43b8e09bfdf5cd6f215267ba99729 09-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] refactoring: move some common linux/mac code to asan_posix.cc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147788 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
4803ab90ead451b55a5833f0fd38b10fd1fc83eb 09-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] refactoring: move all interceptors to a single file

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147784 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
a6b52264e1231bfc4ee9a2d9a4f32678c97295f0 06-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] do not use new/delete for the internal thread structure

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147674 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
9107c26bd88fc9cf44a2cd7d6967eb830ac63be3 06-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] move more code into OS-specific files

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147671 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
ef14ff6512d7b2e20aa3206dff820b5f90285420 06-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] move more stuff to OS-specific files

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147647 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
c549dd7b5fa5fb97270f57067797224cee0429f2 05-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] move {linux,mac}-specific code from asan_thread.cc to asan_{linux,mac}.cc; also add asan_procmaps.h which I forgot to add on previous commit.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147586 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
a874fe5b5d67152e4e737498d532eec80940bdcd 29-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] refactoring: don't #include <sys/mman.h> in non-os-specific files

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147328 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
de496f451bce322b6cde100456591f1f50ab3477 28-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] use custom libc-free getenv; a bit of refactoring around mmap calls

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147326 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
69eca73ac96688c8bfe1f23ee006af29c7858c40 16-Dec-2011 Kostya Serebryany <kcc@google.com> Recently the GCD tests started failing because of the invalid size of
FakeStack on the worker threads.
This patch moves the AsanThread initialization into a separate
procedure that's called when AsanThread objects are called for worker
threads.
Patch by glider@google.com



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146752 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
1957399c5d44802939021d5b89b8171719d96b75 02-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] quick fix for mac build, second attempt. Sorry for spam.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145694 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
4f24d3efb98fcf2b4d667bd42a4d840dbab0ce82 02-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] quick fix for mac build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145692 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
2d8b3bdb112ebb8ed3f15ee41d4cebcd683b41b0 02-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] minimize the use of STL. One bit is still left.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145691 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
d6567c5166412f6acdde851e767c26f332d51d3d 01-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] flatten the asan-rt build slightly

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145631 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc
1e172b4bdec57329bf904f063a29f99cddf2d85f 30-Nov-2011 Kostya Serebryany <kcc@google.com> AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_mac.cc