diff options
Diffstat (limited to 'gnu/llvm/compiler-rt/lib/scudo/standalone/common.h')
-rw-r--r-- | gnu/llvm/compiler-rt/lib/scudo/standalone/common.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/llvm/compiler-rt/lib/scudo/standalone/common.h b/gnu/llvm/compiler-rt/lib/scudo/standalone/common.h index bc3dfec6dbb..2ec9a630359 100644 --- a/gnu/llvm/compiler-rt/lib/scudo/standalone/common.h +++ b/gnu/llvm/compiler-rt/lib/scudo/standalone/common.h @@ -101,7 +101,7 @@ template <typename T> inline void shuffle(T *A, u32 N, u32 *RandState) { // Hardware specific inlinable functions. -inline void yieldProcessor(u8 Count) { +inline void yieldProcessor(UNUSED u8 Count) { #if defined(__i386__) || defined(__x86_64__) __asm__ __volatile__("" ::: "memory"); for (u8 I = 0; I < Count; I++) @@ -132,6 +132,8 @@ u32 getNumberOfCPUs(); const char *getEnv(const char *Name); +uptr GetRSS(); + u64 getMonotonicTime(); u32 getThreadID(); @@ -147,6 +149,7 @@ bool getRandom(void *Buffer, uptr Length, bool Blocking = false); #define MAP_NOACCESS (1U << 1) #define MAP_RESIZABLE (1U << 2) #define MAP_MEMTAG (1U << 3) +#define MAP_PRECOMMIT (1U << 4) // Our platform memory mapping use is restricted to 3 scenarios: // - reserve memory at a random address (MAP_NOACCESS); |