[compiler-rt] r224353 - [asan] new flag: hard_rss_limit_mb
Jay Foad
jay.foad at gmail.com
Thu Dec 18 08:28:26 PST 2014
On 16 December 2014 at 19:13, Kostya Serebryany <kcc at google.com> wrote:
> Author: kcc
> Date: Tue Dec 16 13:13:01 2014
> New Revision: 224353
>
> URL: http://llvm.org/viewvc/llvm-project?rev=224353&view=rev
> Log:
> [asan] new flag: hard_rss_limit_mb
>
> Added:
> compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/hard_rss_limit_mb_test.cc
> Modified:
> compiler-rt/trunk/lib/asan/asan_interceptors.cc
> compiler-rt/trunk/lib/asan/asan_rtl.cc
> compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h
> compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc
> compiler-rt/trunk/lib/sanitizer_common/sanitizer_flags.cc
> compiler-rt/trunk/lib/sanitizer_common/sanitizer_flags.h
> compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h
> compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
> compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
> compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
> compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
> compiler-rt/trunk/lib/tsan/rtl/tsan_platform.h
>
> Modified: compiler-rt/trunk/lib/asan/asan_interceptors.cc
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_interceptors.cc?rev=224353&r1=224352&r2=224353&view=diff
> ==============================================================================
> --- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
> +++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Tue Dec 16 13:13:01 2014
> @@ -236,6 +236,11 @@ INTERCEPTOR(int, pthread_create, void *t
> }
> return result;
> }
> +
> +INTERCEPTOR(int, pthread_join, void *t, void **arg) {
> + return real_pthread_join(t, arg);
> +}
> +DEFINE_REAL_PTHREAD_FUNCTIONS;
> #endif // ASAN_INTERCEPT_PTHREAD_CREATE
>
> #if ASAN_INTERCEPT_SIGNAL_AND_SIGACTION
> @@ -902,6 +907,7 @@ void InitializeAsanInterceptors() {
> // Intercept threading-related functions
> #if ASAN_INTERCEPT_PTHREAD_CREATE
> ASAN_INTERCEPT_FUNC(pthread_create);
> + ASAN_INTERCEPT_FUNC(pthread_join);
> #endif
>
> // Intercept atexit function.
>
> Modified: compiler-rt/trunk/lib/asan/asan_rtl.cc
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_rtl.cc?rev=224353&r1=224352&r2=224353&view=diff
> ==============================================================================
> --- compiler-rt/trunk/lib/asan/asan_rtl.cc (original)
> +++ compiler-rt/trunk/lib/asan/asan_rtl.cc Tue Dec 16 13:13:01 2014
> @@ -658,6 +658,8 @@ static void AsanInitInternal() {
> InitializeAllocator(common_flags()->allocator_may_return_null,
> flags()->quarantine_size);
>
> + MaybeStartBackgroudThread();
s/Backgroud/Background/g
Jay.
More information about the llvm-commits
mailing list