diff options
author | Kostya Serebryany <kcc@google.com> | 2015-01-06 23:53:32 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2015-01-06 23:53:32 +0000 |
commit | df867df2d3da7451984333ebcb6b4040dbcda164 (patch) | |
tree | 744c0312ff145463e55028d3c01d025a9e073f7f /lib/sanitizer_common/sanitizer_quarantine.h | |
parent | 001d038609ab5b91e1e4afa5dc0bf5d5437a2f95 (diff) | |
download | compiler-rt-df867df2d3da7451984333ebcb6b4040dbcda164.tar.gz |
[asan] add a flag soft_rss_limit_mb
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_quarantine.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_quarantine.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_quarantine.h b/lib/sanitizer_common/sanitizer_quarantine.h index c04dc6fac..404d3753f 100644 --- a/lib/sanitizer_common/sanitizer_quarantine.h +++ b/lib/sanitizer_common/sanitizer_quarantine.h @@ -134,6 +134,7 @@ class QuarantineCache { size += sizeof(QuarantineBatch); // Count the batch in Quarantine size. } QuarantineBatch *b = list_.back(); + CHECK(b); b->batch[b->count++] = ptr; b->size += size; SizeAdd(size); @@ -172,6 +173,7 @@ class QuarantineCache { NOINLINE QuarantineBatch* AllocBatch(Callback cb) { QuarantineBatch *b = (QuarantineBatch *)cb.Allocate(sizeof(*b)); + CHECK(b); b->count = 0; b->size = 0; list_.push_back(b); |