[PATCH] [Sanitizer] Introduce Allocator::may_return_null bool flag.

Alexey Samsonov vonosmas at gmail.com
Thu Dec 11 11:30:00 PST 2014


Hi kcc, eugenis,

Turn "allocator_may_return_null" common flag into an
Allocator::may_return_null bool flag. We want to make sure
that common flags are immutable after initialization. There
are cases when we want to change this flag in the allocator
at runtime: e.g. in unit tests and during ASan activation
on Android.

http://reviews.llvm.org/D6623

Files:
  lib/asan/asan_activation.cc
  lib/asan/asan_allocator.h
  lib/asan/asan_allocator2.cc
  lib/asan/asan_rtl.cc
  lib/lsan/lsan_allocator.cc
  lib/msan/msan.h
  lib/msan/msan_allocator.cc
  lib/msan/msan_interceptors.cc
  lib/sanitizer_common/sanitizer_allocator.cc
  lib/sanitizer_common/sanitizer_allocator.h
  lib/sanitizer_common/tests/sanitizer_allocator_test.cc
  lib/tsan/rtl/tsan_interceptors.cc
  lib/tsan/rtl/tsan_mman.cc
  lib/tsan/rtl/tsan_mman.h

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6623.17184.patch
Type: text/x-patch
Size: 17115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141211/4810eb4c/attachment.bin>


More information about the llvm-commits mailing list