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;
|
: 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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue