aboutsummaryrefslogtreecommitdiffstats
path: root/lib/scudo/standalone/secondary.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/scudo/standalone/secondary.h')
-rw-r--r--lib/scudo/standalone/secondary.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/scudo/standalone/secondary.h b/lib/scudo/standalone/secondary.h
index 9124e2a41c6a..9d074a57c772 100644
--- a/lib/scudo/standalone/secondary.h
+++ b/lib/scudo/standalone/secondary.h
@@ -12,6 +12,7 @@
#include "common.h"
#include "mutex.h"
#include "stats.h"
+#include "string_utils.h"
namespace scudo {
@@ -50,7 +51,7 @@ class MapAllocator {
public:
void initLinkerInitialized(GlobalStats *S) {
Stats.initLinkerInitialized();
- if (S)
+ if (LIKELY(S))
S->link(&Stats);
}
void init(GlobalStats *S) {
@@ -70,7 +71,7 @@ public:
return getBlockEnd(Ptr) - reinterpret_cast<uptr>(Ptr);
}
- void printStats() const;
+ void getStats(ScopedString *Str) const;
void disable() { Mutex.lock(); }