summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
diff options
context:
space:
mode:
authorSergey Matveev <earthdok@google.com>2014-12-19 14:45:19 +0000
committerSergey Matveev <earthdok@google.com>2014-12-19 14:45:19 +0000
commit8cd909e7497f414b22067aca30a34d301009d440 (patch)
tree389e7b34e9ab65619e90eff976124818dadb9212 /compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
parent3be15b2fa634c085ad4e37a1a85850e7326c5bef (diff)
downloadbcm5719-llvm-8cd909e7497f414b22067aca30a34d301009d440.tar.gz
bcm5719-llvm-8cd909e7497f414b22067aca30a34d301009d440.zip
[sanitizer] Rename InitIfLinkerInitialized to InitLinkerInitialized.
llvm-svn: 224577
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_allocator.h')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_allocator.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
index 71930ba6b70..d3723eb1dec 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
@@ -211,7 +211,7 @@ class AllocatorStats {
void Init() {
internal_memset(this, 0, sizeof(*this));
}
- void InitIfLinkerInitialized() {}
+ void InitLinkerInitialized() {}
void Add(AllocatorStat i, uptr v) {
v += atomic_load(&stats_[i], memory_order_relaxed);
@@ -241,13 +241,13 @@ class AllocatorStats {
// Global stats, used for aggregation and querying.
class AllocatorGlobalStats : public AllocatorStats {
public:
- void InitIfLinkerInitialized() {
+ void InitLinkerInitialized() {
next_ = this;
prev_ = this;
}
void Init() {
internal_memset(this, 0, sizeof(*this));
- InitIfLinkerInitialized();
+ InitLinkerInitialized();
}
void Register(AllocatorStats *s) {
@@ -1006,14 +1006,14 @@ struct SizeClassAllocatorLocalCache {
template <class MapUnmapCallback = NoOpMapUnmapCallback>
class LargeMmapAllocator {
public:
- void InitIfLinkerInitialized(bool may_return_null) {
+ void InitLinkerInitialized(bool may_return_null) {
page_size_ = GetPageSizeCached();
atomic_store(&may_return_null_, may_return_null, memory_order_relaxed);
}
void Init(bool may_return_null) {
internal_memset(this, 0, sizeof(*this));
- InitIfLinkerInitialized(may_return_null);
+ InitLinkerInitialized(may_return_null);
}
void *Allocate(AllocatorStats *stat, uptr size, uptr alignment) {
@@ -1266,9 +1266,9 @@ class CombinedAllocator {
atomic_store(&may_return_null_, may_return_null, memory_order_relaxed);
}
- void InitIfLinkerInitialized(bool may_return_null) {
- secondary_.InitIfLinkerInitialized(may_return_null);
- stats_.InitIfLinkerInitialized();
+ void InitLinkerInitialized(bool may_return_null) {
+ secondary_.InitLinkerInitialized(may_return_null);
+ stats_.InitLinkerInitialized();
InitCommon(may_return_null);
}
OpenPOWER on IntegriCloud