diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2013-09-27 02:31:23 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2013-09-27 02:31:23 +0000 |
| commit | 439a90451554ed11ee51ed53debf6037e10ef7db (patch) | |
| tree | 159ffa1765e1040a6c0b35bdac860e2630707b75 /compiler-rt/lib/tsan/rtl/tsan_flags.h | |
| parent | 4467f33e3c397a6cf67258243fbddc53178c6ce8 (diff) | |
| download | bcm5719-llvm-439a90451554ed11ee51ed53debf6037e10ef7db.tar.gz bcm5719-llvm-439a90451554ed11ee51ed53debf6037e10ef7db.zip | |
tsan: support allocator_may_return_null flag
Fixes https://code.google.com/p/thread-sanitizer/issues/detail?id=29
llvm-svn: 191482
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_flags.h')
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_flags.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_flags.h b/compiler-rt/lib/tsan/rtl/tsan_flags.h index b517ccc3ffa..238982bf2a3 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_flags.h +++ b/compiler-rt/lib/tsan/rtl/tsan_flags.h @@ -92,6 +92,8 @@ struct Flags { // 1 - reasonable level of synchronization (write->read) // 2 - global synchronization of all IO operations int io_sync; + // If false, the allocator will crash instead of returning 0 on out-of-memory. + bool allocator_may_return_null; }; Flags *flags(); |

