| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[compiler-rt][CMake] Set --unwindlib=none when using LLVM libunwind We already link libunwind explicitly so avoid trying to link toolchain's default libunwind which may be missing. This matches what we already do for libcxx and libcxxabi. Differential Revision: https://reviews.llvm.org/D129472 | 3 年前 | |
compiler-rt: Try to appease lint script. A bot complains: /b/sanitizer-x86_64-linux-autoconf/build/llvm/projects/compiler-rt/lib/sanitizer_common/tests/malloc_stress_transfer_test.cpp:2: Streams are highly discouraged. [readability/streams] [3] /b/sanitizer-x86_64-linux-autoconf/build/llvm/projects/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp:11: Streams are highly discouraged. [readability/streams] [3] lib/CMakeFiles/SanitizerLintCheck.dir/build.make:57: recipe for target 'lib/CMakeFiles/SanitizerLintCheck' failed I do not know why this apparently wasn't a problem when the files had extension .cc. llvm-svn: 367493 | 6 年前 | |
[sanitizer] Add a ForEach callback interface for AddrHashMap. This change adds a ForEach method to the AddrHashMap class which can then be used to iterate over all the key value pairs in the hash map. I intend to use this in an upcoming change to the memprof runtime. Added a unit test to cover basic insertion and the ForEach callback. Differential Revision: https://reviews.llvm.org/D111368 | 4 年前 | |
[NFC][sanitizer] Rename ByteMap to Map | 4 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
[NFC][sanitizer] Fix 'macro redefined' warning in test | 5 年前 | |
[sanitizer] Define 32bit uptr as uint This makes it consistent with uintptr_t. It's 45138f788c9b3c4ac5d9ae4479841c411c15190e with Darwin fix. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D108163 | 4 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
[sanitizer_common] Fix SanitizerCommon.ChainedOriginDepotStats test This test was failing with the following error message if to run the test binary directly, w/o using lit: $ Sanitizer-x86_64-Test --gtest_filter=SanitizerCommon.ChainedOriginDepot* ... [ RUN ] SanitizerCommon.ChainedOriginDepotStats compiler-rt/lib/sanitizer_common/tests/sanitizer_chained_origin_depot_test.cpp:77: Failure Expected: (stats1.allocated) > (stats0.allocated), actual: 196608 vs 196608 [ FAILED ] SanitizerCommon.ChainedOriginDepotStats (867 ms) Since the ChainedOriginDepot* tests are not doing any cleanup, by the time SanitizerCommon.ChainedOriginDepotStats test starts executing the depot may not be empty, so there will be no allocation for the test. This patch introduces ChainedOriginDepot::TestOnlyUnmap() API that deallocates memory when requested. This makes sure underlying TwoLevelMap initiates the expected allocation during the test. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D127621 | 3 年前 | |
[Sanitizers][Darwin] Replace SANITIZER_MAC with SANITIZER_APPLE in source files This is a follow up to [Sanitizers][Darwin] Rename Apple macro SANITIZER_MAC -> SANITIZER_APPLE (D125816) Performed a global search/replace as in title against LLVM sources Differential Revision: https://reviews.llvm.org/D126263 | 4 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
[sanitizer_common] Fix DenseMapCustomTest.DefaultMinReservedSizeTest on SPARC As described in Issue #53523, the DenseMapCustomTest.DefaultMinReservedSizeTest test FAILs on Solaris/SPARC (both 32 and 64-bit): /vol/llvm/src/llvm-project/local/compiler-rt/lib/sanitizer_common/tests/sanitizer_dense_map_test.cpp:399: Failure Expected: (MemorySize) != (Map.getMemorySize()), actual: 8192 vs 8192 This happens because SPARC, unlike many other CPUs, uses an 8 kB pagesize. Fixed by incorporating the pagesize into the calculations of ExpectedInitialBucketCount and derived values. Tested on sparcv9-sun-solaris2.11, amd64-pc-solaris2.11, and x86_64-pc-linux-gnu. Differential Revision: https://reviews.llvm.org/D118771 | 4 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
[NFC][sanitizer] Refactor Maps into templates Depends on D111599. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D111605 | 4 年前 | |
[msan] Support %ms in scanf. Differential Revision: https://reviews.llvm.org/D85350 | 5 年前 | |
[NFC][sanitizer] Add MurMur2Hash64Builder Depends on D111176. Differential Revision: https://reviews.llvm.org/D111177 | 4 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
[sanitizer] Fix shift UB in LEB128 test If u64 and uptr have the same size, then this will perform a shift by the bitwidth, which is UB. We only need this code if uptr is smaller than u64. | 4 年前 | |
[Sanitizers][Darwin] Replace SANITIZER_MAC with SANITIZER_APPLE in source files This is a follow up to [Sanitizers][Darwin] Rename Apple macro SANITIZER_MAC -> SANITIZER_APPLE (D125816) Performed a global search/replace as in title against LLVM sources Differential Revision: https://reviews.llvm.org/D126263 | 4 年前 | |
[sanitizer] Simplify GetTls with dl_iterate_phdr on Linux and use it on musl/FreeBSD ... so that FreeBSD specific GetTls/glibc specific pthread_self code can be removed. This also helps FreeBSD arm64/powerpc64 which don't have GetTls implementation yet. GetTls is the range of * thread control block and optional TLS_PRE_TCB_SIZE * static TLS blocks plus static TLS surplus On glibc, lsan requires the range to include pthread::{specific_1stblock,specific} so that allocations only referenced by pthread_setspecific can be scanned. This patch uses dl_iterate_phdr to collect TLS blocks. Find the one with dlpi_tls_modid==1 as one of the initially loaded module, then find consecutive ranges. The boundaries give us addr and size. This allows us to drop the glibc internal _dl_get_tls_static_info and InitTlsSize. However, huge glibc x86-64 binaries with numerous shared objects may observe time complexity penalty, so exclude them for now. Use the simplified method with non-Android Linux for now, but in theory this can be used with *BSD and potentially other ELF OSes. This removal of RISC-V __builtin_thread_pointer makes the code compilable with more compiler versions (added in Clang in 2020-03, added in GCC in 2020-07). This simplification enables D99566 for TLS Variant I architectures. Note: as of musl 1.2.2 and FreeBSD 12.2, dlpi_tls_data returned by dl_iterate_phdr is not desired: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254774 This can be worked around by using __tls_get_addr({modid,0}) instead of dlpi_tls_data. The workaround can be shared with the workaround for glibc<2.25. This fixes some tests on Alpine Linux x86-64 (musl) test/lsan/Linux/cleanup_in_tsd_destructor.c test/lsan/Linux/fork.cpp test/lsan/Linux/fork_threaded.cpp test/lsan/Linux/use_tls_static.cpp test/lsan/many_tls_keys_thread.cpp test/msan/tls_reuse.cpp and test/lsan/TestCases/many_tls_keys_pthread.cpp on glibc aarch64. The number of sanitizer test failures does not change on FreeBSD/amd64 12.2. Differential Revision: https://reviews.llvm.org/D98926 | 5 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
[sanitizer] Add Lempel–Ziv–Welch encoder/decoder It's very simple, fast and efficient for the stack depot compression if used on entire pointers. Reviewed By: morehouse, kstoimenov Differential Revision: https://reviews.llvm.org/D114918 | 4 年前 | |
[Sanitizers][Darwin] Replace SANITIZER_MAC with SANITIZER_APPLE in source files This is a follow up to [Sanitizers][Darwin] Rename Apple macro SANITIZER_MAC -> SANITIZER_APPLE (D125816) Performed a global search/replace as in title against LLVM sources Differential Revision: https://reviews.llvm.org/D126263 | 4 年前 | |
sanitizer_common: add Mutex::TryLock Will be used in future changes. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D122905 | 4 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
[sanitizer_common][tests] Fix SanitizerCommon-Unit :: ./Sanitizer-*-Test/SanitizerCommon.PthreadDestructorIterations on Solaris SanitizerCommon.PthreadDestructorIterations currently FAILs on Solaris: [ RUN ] SanitizerCommon.PthreadDestructorIterations /vol/llvm/src/compiler-rt/local/lib/sanitizer_common/tests/sanitizer_posix_test.cc:58: Failure Value of: destructor_executed Actual: true Expected: false [ FAILED ] SanitizerCommon.PthreadDestructorIterations (1 ms) It turns out that destructor is called 4 times after the first call to SpawnThread, but 5 times after the second. While PTHREAD_DESTRUCTOR_ITERATIONS is 4 in <limits.h>, the Solaris pthread_key_create(3C) man page documents If, after all the destructors have been called for all keys with non- null values, there are still some keys with non-null values, the process will be repeated. POSIX requires that this process be executed at least PTHREAD_DESTRUCTOR_ITERATIONS times. Solaris calls the destructors repeatedly until all values with associated destructors are NULL. Destructors that set new values can cause an infinite loop. The patch adjusts the test case to allow for this. Tested on x86_64-pc-solaris2.11. Differential Revision: https://reviews.llvm.org/D65055 llvm-svn: 367705 | 6 年前 | |
sanitizer_common: support %l in format strings Currently we only support %z and %ll width modifiers, but surprisingly not %l. This makes it impossible to print longs (sizeof(long) not necessary equal to sizeof(size_t)). We had some printf's that printed longs with %zu, but that's wrong and now with __attribute__((format)) in place they are flagged by compiler. So we either have a choice of doing static_cast<uptr>(long) everywhere or add %l. Adding %l looks better, that's a standard modifier. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D108066 | 4 年前 | |
[Sanitizers][Darwin] Replace SANITIZER_MAC with SANITIZER_APPLE in source files This is a follow up to [Sanitizers][Darwin] Rename Apple macro SANITIZER_MAC -> SANITIZER_APPLE (D125816) Performed a global search/replace as in title against LLVM sources Differential Revision: https://reviews.llvm.org/D126263 | 4 年前 | |
[sanitizer] Fix warning on windows Return value is not used anyway as PTHREAD_JOIN is not implemented. | 6 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
[sanitizer] Hook up LZW into stack store Depends on D114503. Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D114924 | 4 年前 | |
Revert "[NFC][sanitizer] Disable a test with large stderr output" This reverts commit 6eb38e517159f1fa5686d661d2aceb0a4002d8f0. The test was not the reason of sanitizer-x86_64-linux-android failures. | 4 年前 | |
[sanitizers] include build ids in stacks on linux. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D114294 | 4 年前 | |
sanitizer_common: fix format strings Fix existing -Wformat warnings. Depends on D107979. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D107980 | 4 年前 | |
Port __sanitizer::StopTheWorld to Windows This also makes the sanitizer_stoptheworld_test cross-platform by using the STL, rather than pthread. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D115204 | 4 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
[compiler-rt] Remove some cpplint filters llvm-svn: 371704 | 6 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
Update the file headers across all of the LLVM projects in the monorepo to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636 | 7 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
[sanitizer] Defined SANITIZER_TEST_HAS_PVALLOC only on glibc This simplifies the condition and makes it work on musl. | 5 年前 | |
sanitizers: switch BlockingMutex(LINKER_INITIALIZED) to Mutex Mutex does not support LINKER_INITIALIZED support. As preparation to switching BlockingMutex to Mutex, proactively replace all BlockingMutex(LINKER_INITIALIZED) to Mutex. All of these are objects with static storage duration and Mutex ctor is constexpr, so it should be equivalent. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D106944 | 4 年前 | |
[sanitizer] Add a few of type_traits tools For D114047 | 4 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 | |
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467 | 6 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 年前 | ||
| 6 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 5 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 4 年前 | ||
| 5 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 5 年前 | ||
| 6 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 7 年前 | ||
| 6 年前 | ||
| 5 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 6 年前 |