Skip to content

Commit d48d867

Browse files
committed
[NFC][sanitizer] Rename RssLimitExceeded -> IsRssLimitExceeded
1 parent 78de182 commit d48d867

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler-rt/lib/asan/asan_allocator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ struct Allocator {
345345
: kMaxAllowedMallocSize;
346346
}
347347

348-
bool RssLimitExceeded() {
348+
bool IsRssLimitExceeded() {
349349
return atomic_load(&rss_limit_exceeded, memory_order_relaxed);
350350
}
351351

@@ -484,7 +484,7 @@ struct Allocator {
484484
AllocType alloc_type, bool can_fill) {
485485
if (UNLIKELY(!asan_inited))
486486
AsanInitFromRtl();
487-
if (RssLimitExceeded()) {
487+
if (UNLIKELY(IsRssLimitExceeded())) {
488488
if (AllocatorMayReturnNull())
489489
return nullptr;
490490
ReportRssLimitExceeded(stack);

compiler-rt/lib/memprof/memprof_allocator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ struct Allocator {
301301
: kMaxAllowedMallocSize;
302302
}
303303

304-
bool RssLimitExceeded() {
304+
bool IsRssLimitExceeded() {
305305
return atomic_load(&rss_limit_exceeded, memory_order_relaxed);
306306
}
307307

@@ -314,7 +314,7 @@ struct Allocator {
314314
AllocType alloc_type) {
315315
if (UNLIKELY(!memprof_inited))
316316
MemprofInitFromRtl();
317-
if (RssLimitExceeded()) {
317+
if (UNLIKELY(IsRssLimitExceeded())) {
318318
if (AllocatorMayReturnNull())
319319
return nullptr;
320320
ReportRssLimitExceeded(stack);

0 commit comments

Comments
 (0)