summaryrefslogtreecommitdiff
path: root/lib/asan/asan_rtl.cc
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-08-12 22:31:19 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-08-12 22:31:19 +0000
commit6fd4da6196928a4b3a11341b9b2a747887e550f0 (patch)
tree80e694352f550a05137f5005f5a85160a7da779f /lib/asan/asan_rtl.cc
parentbe4623b8f3875c13933d453ff1dc953b3665119a (diff)
[TSan] Share the code the setup code calling getrlim/setrlim with sanitizer_common
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_rtl.cc')
-rw-r--r--lib/asan/asan_rtl.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/asan/asan_rtl.cc b/lib/asan/asan_rtl.cc
index ae229ea98..2064a6101 100644
--- a/lib/asan/asan_rtl.cc
+++ b/lib/asan/asan_rtl.cc
@@ -611,9 +611,7 @@ static void AsanInitInternal() {
if (common_flags()->verbosity)
PrintAddressSpaceLayout();
- if (common_flags()->disable_coredump) {
- DisableCoreDumper();
- }
+ DisableCoreDumperIfNecessary();
if (full_shadow_is_available) {
// mmap the low shadow plus at least one page at the left.