[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;
}
bool RssLimitExceeded() {
bool IsRssLimitExceeded() {
return atomic_load(&rss_limit_exceeded, memory_order_relaxed);
}
@ -484,7 +484,7 @@ struct Allocator {
AllocType alloc_type, bool can_fill) {
if (UNLIKELY(!asan_inited))
AsanInitFromRtl();
if (RssLimitExceeded()) {
if (UNLIKELY(IsRssLimitExceeded())) {
if (AllocatorMayReturnNull())
return nullptr;
ReportRssLimitExceeded(stack);

View File

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