[NFC][sanitizer] Rename RssLimitExceeded -> IsRssLimitExceeded

This commit is contained in:
Vitaly Buka 2021-12-02 12:47:47 -08:00
parent 78de182425
commit d48d8670b5
2 changed files with 4 additions and 4 deletions

View File

@ -345,7 +345,7 @@ struct Allocator {
: kMaxAllowedMallocSize; : kMaxAllowedMallocSize;
} }
bool RssLimitExceeded() { bool IsRssLimitExceeded() {
return atomic_load(&rss_limit_exceeded, memory_order_relaxed); return atomic_load(&rss_limit_exceeded, memory_order_relaxed);
} }
@ -484,7 +484,7 @@ struct Allocator {
AllocType alloc_type, bool can_fill) { AllocType alloc_type, bool can_fill) {
if (UNLIKELY(!asan_inited)) if (UNLIKELY(!asan_inited))
AsanInitFromRtl(); AsanInitFromRtl();
if (RssLimitExceeded()) { if (UNLIKELY(IsRssLimitExceeded())) {
if (AllocatorMayReturnNull()) if (AllocatorMayReturnNull())
return nullptr; return nullptr;
ReportRssLimitExceeded(stack); ReportRssLimitExceeded(stack);

View File

@ -301,7 +301,7 @@ struct Allocator {
: kMaxAllowedMallocSize; : kMaxAllowedMallocSize;
} }
bool RssLimitExceeded() { bool IsRssLimitExceeded() {
return atomic_load(&rss_limit_exceeded, memory_order_relaxed); return atomic_load(&rss_limit_exceeded, memory_order_relaxed);
} }
@ -314,7 +314,7 @@ struct Allocator {
AllocType alloc_type) { AllocType alloc_type) {
if (UNLIKELY(!memprof_inited)) if (UNLIKELY(!memprof_inited))
MemprofInitFromRtl(); MemprofInitFromRtl();
if (RssLimitExceeded()) { if (UNLIKELY(IsRssLimitExceeded())) {
if (AllocatorMayReturnNull()) if (AllocatorMayReturnNull())
return nullptr; return nullptr;
ReportRssLimitExceeded(stack); ReportRssLimitExceeded(stack);