summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Creating branches/google/stable and tags/google/stable/2019-05-14 from r360103google/stableJordan Rupprecht2019-05-141746-21591/+26148
|\ | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/google/stable@360714 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add libc++ to link XRay test cases if libc++ is used to build CLANGXing Xue2019-05-062-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: When libc++ is used to build CLANG, its XRay libraries libclang_rt.xray-*.a have dependencies on libc++. Therefore, libc++ is needed to link and run XRay test cases. For Linux -rpath is also needed to specify where to load libc++. This change sets macro LLVM_LIBCXX_USED to 1 if libc++ is actually used in the build. XRay tests then check the flag and add -L<llvm_shlib_dir> -lc++ and -Wl,-rpath=<llvm_shlib_dir> if needed. Reviewers: hubert.reinterpretcast, amyk, dberris, jasonliu, sfertile, EricWF Subscribers: dberris, mgorny, jsji, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D61016 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@360060 91177308-0d34-0410-b5e6-96231b3b80d8
| * [Lsan] Disabling explicitally FreeBSDDavid Carlier2019-05-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | As it is not implemented upon usage, it just provokes numerous linkage issues so better switch off clearly. Reviewers: vitalybuka, morehouse Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D61484 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359920 91177308-0d34-0410-b5e6-96231b3b80d8
| * [hwasan] Fix HWASAN_WITH_INTERCEPTORS=OFF build on not-android.Evgeniy Stepanov2019-05-031-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: I'm not aware of any platforms where this will work, but the code should at least compile. HWASAN_WITH_INTERCEPTORS=OFF means there is magic in libc that would call __hwasan_thread_enter / __hwasan_thread_exit as appropriate. Reviewers: pcc, winksaville Subscribers: srhines, kubamracek, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61337 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359914 91177308-0d34-0410-b5e6-96231b3b80d8
| * Avoid duplicate function aliases on MinGW after SVN r359835Martin Storsjo2019-05-032-4/+6
| | | | | | | | | | | | | | On MinGW, the same alias mechanism as for ELF, using __attribute__((__alias__())), is used. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359865 91177308-0d34-0410-b5e6-96231b3b80d8
| * [crtbegin] Fix an off-by-1 bug in __do_finiFangrui Song2019-05-031-1/+1
| | | | | | | | | | | | Differential Revision: https://reviews.llvm.org/D61367 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359850 91177308-0d34-0410-b5e6-96231b3b80d8
| * Fix check-builtins on Windows after alias changesReid Kleckner2019-05-023-1/+21
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359835 91177308-0d34-0410-b5e6-96231b3b80d8
| * [compiler-rt] Set the ZX_VMO_RESIZABLE option for zx_vmo_createPetr Hosek2019-05-024-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently VMO in Zircon create using the zx_vmo_create is resizable by default, but we'll be changing this in the future, requiring an explicit flag to make the VMO resizable. Prepare for this change by passing ZX_VMO_RESIZABLE option to all zx_vmo_create calls that need resizable VMO. Differential Revision: https://reviews.llvm.org/D61450 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359803 91177308-0d34-0410-b5e6-96231b3b80d8
| * [libFuzzer] Re-enable libFuzzer on i386 Linux and fix testJonathan Metzman2019-05-022-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Re-enable libFuzzer on i386 Linux after it was accidentally disabled. Also disable gc-sections.test on i386 since lld isn't garbage collecting properly with ASAN on i386. Reviewers: morehouse Reviewed By: morehouse Subscribers: srhines, mgorny, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61415 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359802 91177308-0d34-0410-b5e6-96231b3b80d8
| * Fix for WindowsStephan Bergmann2019-05-021-2/+1
| | | | | | | | | | | | | | ...after 5745eccef54ddd3caca278d1d292a88b2281528b "Adapt -fsanitize=function to SANITIZER_NON_UNIQUE_TYPEINFO" git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359760 91177308-0d34-0410-b5e6-96231b3b80d8
| * Adapt -fsanitize=function to SANITIZER_NON_UNIQUE_TYPEINFOStephan Bergmann2019-05-027-48/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This follows up after b7692bc3e9ad2691fc07261904b88fb15f30696b "[UBSan] Fix isDerivedFromAtOffset on iOS ARM64" fixed the RTTI comparison in isDerivedFromAtOffset on just one platform and then a25a2c7c9a7e1e328a5bd8274d2d86b1fadc4692 "Always compare C++ typeinfo (based on libstdc++ implementation)" extended that fix to more platforms. But there is another RTTI comparison for -fsanitize=function generated in clang's CodeGenFunction::EmitCall as just a pointer comparison. For SANITIZER_NON_UNIQUE_TYPEINFO platforms this needs to be extended to also do string comparison. For that, __ubsan_handle_function_type_mismatch[_abort] takes the two std::type_info pointers as additional parameters now, checks them internally for potential equivalence, and returns without reporting failure if they turn out to be equivalent after all. (NORETURN needed to be dropped from the _abort variant for that.) Also these functions depend on ABI-specific RTTI now, so needed to be moved from plain UBSAN_SOURCES (ubsan_handlers.h/cc) to UBSAN_CXXABI_SOURCES (ubsan_handlers_cxx.h/cc), but as -fsanitize=function is only supported in C++ mode that's not a problem. Differential Revision: https://reviews.llvm.org/D60760 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359759 91177308-0d34-0410-b5e6-96231b3b80d8
| * [compiler-rt][tests] Propagate COMPILER_RT_UNITTEST_LINK_FLAGSHubert Tong2019-05-016-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `COMPILER_RT_UNITTEST_LINK_FLAGS` is dropped in many places, unlike `COMPILER_RT_UNITTEST_CFLAGS`. This patch attempts to remove that inconsistency. Previously reviewed as part of D58951. Reviewers: sfertile, peter.smith, pzheng, phosek, Hahnfeld, nemanjai, jasonliu Reviewed By: sfertile Subscribers: jsji, kubamracek, dberris, mgorny, delcypher, jdoerfert, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D60143 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359733 91177308-0d34-0410-b5e6-96231b3b80d8
| * [tsan] Fix and re-enable user_malloc.cc testVitaly Buka2019-05-011-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: no_sanitize_thread is not enough as it still puts some tsan instrumentation Reviewers: eugenis Subscribers: kubamracek, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61393 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359731 91177308-0d34-0410-b5e6-96231b3b80d8
| * [sanitizer][NFC] Remove unneeded SizeClassAllocatorLocalCacheVitaly Buka2019-05-013-29/+17
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359729 91177308-0d34-0410-b5e6-96231b3b80d8
| * [sanitizer][NFC] Add const/static into a couple of methodsVitaly Buka2019-05-012-4/+4
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359728 91177308-0d34-0410-b5e6-96231b3b80d8
| * [Sanitizer] Reland "Cleanup INTERCEPT_FUNCTION macro"Julian Lettner2019-05-016-40/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Linux both version of the INTERCEPT_FUNCTION macro now return true when interception was successful. Adapt and cleanup some usages. Also note that `&(func) == &WRAP(func)` is a link-time property, but we do a runtime check. Tested on Linux and macOS. Previous attempt reverted by: 5642c3feb03d020dc06a62e3dc54f3206a97a391 This attempt to bring order to the interceptor macro goes the other direction and aligns the Linux implementation with the way things are done on Windows. Reviewed By: vitalybuka, rnk Differential Revision: https://reviews.llvm.org/D61358 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359725 91177308-0d34-0410-b5e6-96231b3b80d8
| * [sanitizer][NFC] Set LargeMmapAllocator type from PrimaryAllocatorVitaly Buka2019-05-019-45/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | They need to have same AddressSpaceView and MapUnmapCallback. Reviewers: eugenis Subscribers: kubamracek, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61168 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359719 91177308-0d34-0410-b5e6-96231b3b80d8
| * [scudo][NFC] Remove unneeded template from scudo::CombinedAllocatorVitaly Buka2019-05-012-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewers: cryptoad, eugenis Reviewed By: cryptoad Subscribers: #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61162 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359718 91177308-0d34-0410-b5e6-96231b3b80d8
| * [sanitizer][NFC] Get type of AllocatorCache from CombinedAllocatorVitaly Buka2019-05-0111-56/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewers: eugenis, cryptoad, kcc Reviewed By: kcc Subscribers: kcc, kubamracek, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61155 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359715 91177308-0d34-0410-b5e6-96231b3b80d8
| * [sanitizer] Implement reallocarray.Evgeniy Stepanov2019-05-0130-9/+215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: It's a cross of calloc and realloc. Sanitizers implement calloc-like check for size overflow. Reviewers: vitalybuka, kcc Subscribers: kubamracek, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61108 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359708 91177308-0d34-0410-b5e6-96231b3b80d8
| * [libFuzzer] Add --dump-input-on-failure to help diagnose AArch64 failuresPeter Smith2019-05-012-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fork-siguser.test and fork.test intermittently fail on the AArch64 buildbot. Unfortunately these failures are not reproducible on a similar machine and seem to fail when the machines are under load. Before suggesting the tests be marked unsupported for AArch64 we'd like to see if we can get some more information about the failures to see if it helps us reproduce. This patch adds --dump-input-on-failure to the FileCheck commands to see if we can get some more information about the failures. Differential Revision: https://reviews.llvm.org/D61315 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359675 91177308-0d34-0410-b5e6-96231b3b80d8
| * [compiler-rt] Use correct spelling of the -Wno-pedantic variablePetr Hosek2019-05-011-1/+1
| | | | | | | | | | | | | | This addresses the issue introduced in r359646 which is causing sanitizer bots to fail. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359659 91177308-0d34-0410-b5e6-96231b3b80d8
| * Use __extension__ to suppress __EH_FRAME_LIST__ warningsFangrui Song2019-05-011-1/+1
| | | | | | | | | | | | | | gcc -pedantic => warning: ISO C forbids empty initializer braces clang -pedantic => -Wzero-length-array + -Wgnu-empty-initializer git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359655 91177308-0d34-0410-b5e6-96231b3b80d8
| * [compiler-rt] Cleanup the --target and --sysroot handlingPetr Hosek2019-05-011-4/+3
| | | | | | | | | | | | This addresses issue introduced in r359646. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359650 91177308-0d34-0410-b5e6-96231b3b80d8
| * [compiler-rt] Pass sysroot and disable pedantic for crtbegin.o/crtend.oPetr Hosek2019-05-013-1/+6
| | | | | | | | | | | | | | | | These are needed to make bots happy. Differential Revision: https://reviews.llvm.org/D61363 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359646 91177308-0d34-0410-b5e6-96231b3b80d8
| * [compiler-rt] Rework the object build supportPetr Hosek2019-05-011-8/+33
| | | | | | | | | | | | | | | | | | | | The initial implementation didn't properly support cross-compilation via the runtime build, the updated implementation should address that by expanding the CMAKE_C_COMPILE_OBJECT variable with correct values. Differential Revision: https://reviews.llvm.org/D61356 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359644 91177308-0d34-0410-b5e6-96231b3b80d8
| * [libFuzzer] Disable i386 on non-Linux platformsJonathan Metzman2019-05-011-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Disable i386 on non-Linux platforms since it is unwanted and broken on Windows. Reviewers: morehouse, rnk Reviewed By: morehouse Subscribers: mgorny, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61354 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359641 91177308-0d34-0410-b5e6-96231b3b80d8
| * [libFuzzer] Fix failing test: sigint.testJonathan Metzman2019-04-301-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Fix sigint.test by making it require msan rather than enumerating unsupported platforms. Reviewers: kcc Reviewed By: kcc Subscribers: #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61353 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359638 91177308-0d34-0410-b5e6-96231b3b80d8
| * Added test.Mitch Phillips2019-04-301-0/+16
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359632 91177308-0d34-0410-b5e6-96231b3b80d8
| * [sanitizer_common] Added 64-bit signed flag parser.Mitch Phillips2019-04-301-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Adds a 64-bit signed flag parser for GWP-ASan's use. Reviewers: vlad.tsyrklevich, eugenis Subscribers: kubamracek, #sanitizers, llvm-commits, vitalybuka, morehouse, pcc, kcc Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61342 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359631 91177308-0d34-0410-b5e6-96231b3b80d8
| * [libFuzzer] temporarily disable a test on windows, where there is no memmem ↵Kostya Serebryany2019-04-301-0/+2
| | | | | | | | | | | | in the usual place git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359624 91177308-0d34-0410-b5e6-96231b3b80d8
| * [libFuzzer] add MagicSeparatorTestKostya Serebryany2019-04-302-0/+51
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359620 91177308-0d34-0410-b5e6-96231b3b80d8
| * Revert r359325 "[NFC][Sanitizer] Change "return type" of INTERCEPT_FUNCTION ↵Reid Kleckner2019-04-306-20/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to void" Changing INTERCEPT_FUNCTION to return void is not functionally correct. IMO the best way to communicate failure or success of interception is with a return value, not some external address comparison. This change was also creating link errors for _except_handler4_common, which is exported from ucrtbase.dll in 32-bit Windows. Also revert dependent changes r359362 and r359466. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359611 91177308-0d34-0410-b5e6-96231b3b80d8
| * [libFuzzer] Replace -seed_corpus to better support fork mode on WinJonathan Metzman2019-04-306-10/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Pass seed corpus list in a file to get around argument length limits on Windows. This limit was preventing many uses of fork mode on Windows. Reviewers: kcc, morehouse Reviewed By: kcc Subscribers: #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D60980 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359610 91177308-0d34-0410-b5e6-96231b3b80d8
| * [compiler-rt][builtins][sanitizers] Update compiler-rt test cases forAmy Kwan2019-04-302-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compatibility with system's toolchain This patch aims to: - Guard ompiler-rt/test/builtins/Unit/compiler_rt_logb_test.c with macros, so the test runs on GLIBC versions >= 2.23. This is because the test relies on comparing its computed values to libm. Oolder versions might not compute to the same value as the compiler-rt value. - Update compiler-rt/test/sanitizer_common/TestCases/Posix/getpw_getgr.cc so that std::string is not used, since false positives may be detected. Differential Revision: https://reviews.llvm.org/D60644 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359606 91177308-0d34-0410-b5e6-96231b3b80d8
| * Reland "[compiler-rt] Simple crtbegin.o and crtend.o implementation"Petr Hosek2019-04-3013-17/+442
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clang relies on existence of certain symbols that are normally provided by crtbegin.o/crtend.o. However, LLVM does not currently provide implementation of these files, instead relying on either libgcc or implementations provided as part of the system. This change provides an initial implementation of crtbegin.o/crtend.o that can be used on system that don't provide crtbegin.o/crtend.o as part of their C library. Differential Revision: https://reviews.llvm.org/D28791 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359591 91177308-0d34-0410-b5e6-96231b3b80d8
| * fix broken testJonathan Metzman2019-04-301-7/+7
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359590 91177308-0d34-0410-b5e6-96231b3b80d8
| * remove extra zerosJonathan Metzman2019-04-301-1/+1
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359589 91177308-0d34-0410-b5e6-96231b3b80d8
| * remove stale commentJonathan Metzman2019-04-301-1/+1
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359588 91177308-0d34-0410-b5e6-96231b3b80d8
| * change orderJonathan Metzman2019-04-301-1/+1
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359587 91177308-0d34-0410-b5e6-96231b3b80d8
| * fix commentJonathan Metzman2019-04-301-1/+1
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359586 91177308-0d34-0410-b5e6-96231b3b80d8
| * [libFuzzer] Enable for i386Jonathan Metzman2019-04-302-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | Summary: Get libFuzzer to build on i386 and fix tests. Subscribers: mgorny, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61070 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359585 91177308-0d34-0410-b5e6-96231b3b80d8
| * Fix issues with testing for i386Jonathan Metzman2019-04-305-3/+8
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359584 91177308-0d34-0410-b5e6-96231b3b80d8
| * Enable x86 buildsJonathan Metzman2019-04-305-9/+12
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359583 91177308-0d34-0410-b5e6-96231b3b80d8
| * Revert "[compiler-rt] Simple crtbegin.o and crtend.o implementation"Petr Hosek2019-04-3012-420/+17
| | | | | | | | | | | | This reverts commit r359576 since it's failing on Windows bots. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359579 91177308-0d34-0410-b5e6-96231b3b80d8
| * [compiler-rt] Simple crtbegin.o and crtend.o implementationPetr Hosek2019-04-3012-17/+420
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clang relies on existence of certain symbols that are normally provided by crtbegin.o/crtend.o. However, LLVM does not currently provide implementation of these files, instead relying on either libgcc or implementations provided as part of the system. This change provides an initial implementation of crtbegin.o/crtend.o that can be used on system that don't provide crtbegin.o/crtend.o as part of their C library. Differential Revision: https://reviews.llvm.org/D28791 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359576 91177308-0d34-0410-b5e6-96231b3b80d8
| * [scudo][standalone] Add the memory reclaiming mechanismKostya Kortchinsky2019-04-306-3/+527
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This CL implements the memory reclaiming function `releaseFreeMemoryToOS` and its associated classes. Most of this code was originally written by Aleksey for the Primary64 in sanitizer_common, and I made some changes to be able to implement 32-bit reclaiming as well. The code has be restructured a bit to accomodate for freelist of batches instead of the freearray used in the current sanitizer_common code. Reviewers: eugenis, vitalybuka, morehouse, hctim Reviewed By: vitalybuka Subscribers: srhines, mgorny, delcypher, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D61214 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359567 91177308-0d34-0410-b5e6-96231b3b80d8
| * Fix FIXME added in r359339Reid Kleckner2019-04-292-15/+12
| | | | | | | | | | | | | | | | | | We have windows.h in asan_win.cc, so we can just use the correct prototypes for these EH-related interceptors without worrying. Also fix an unused variable warning while I'm here. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359500 91177308-0d34-0410-b5e6-96231b3b80d8
| * Pacify sanitizer lint script after r359498Reid Kleckner2019-04-291-1/+0
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359499 91177308-0d34-0410-b5e6-96231b3b80d8
| * [AddressSanitizer] [Windows] Fix HeapReAlloc and _recalloc bugs in ↵Matthew G McGovern2019-04-293-14/+101
| | | | | | | | | | | | | | | | | | | | | | asan_malloc_win.cc HeapReAlloc should allow for 0 sized reallocations without freeing the memory block provided by the user. _recalloc previously did not zero new memory after reallocation. https://reviews.llvm.org/D61268 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359498 91177308-0d34-0410-b5e6-96231b3b80d8