forked from OSchip/llvm-project
[NFC][sanitizer] Rename RssLimitExceeded -> IsRssLimitExceeded
This commit is contained in:
parent
78de182425
commit
d48d8670b5
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue